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 7f2b182
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ 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"
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 7f2b182

Please sign in to comment.