Skip to content

Commit

Permalink
chore(CI): use Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
fannheyward committed Mar 14, 2024
1 parent 84ce031 commit 6734ef3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,31 @@ jobs:
- "stable"
- "nightly"
node:
- "16"
- "20"
include:
# only enable coverage on the fastest job
- node: "16"
- node: "20"
ENABLE_CODE_COVERAGE: true

env:
NODE_ENV: test

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Setup python3
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: "3.11"
- run: pip install pynvim

- name: Setup vim
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
node --max-old-space-size=4096 --expose-gc ./node_modules/.bin/jest --maxWorkers=2 --coverage --forceExit
- name: Codecov
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v4
if: ${{ matrix.ENABLE_CODE_COVERAGE }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: "npm"

Expand Down
2 changes: 1 addition & 1 deletion src/configuration/shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class ConfigurationProxy implements IConfigurationShape {
let dir = path.dirname(fsPath)
let formattingOptions = { tabSize: 2, insertSpaces: true }
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true })
let content = fs.readFileSync(fsPath, { encoding: 'utf8', flag: 'a+' })
let content = fs.readFileSync(fsPath, { flag: 'a+' }).toString('utf8')
content = content || '{}'
let edits = modify(content, [key], value, { formattingOptions })
content = applyEdits(content, edits)
Expand Down

0 comments on commit 6734ef3

Please sign in to comment.