Skip to content

Commit

Permalink
ci: change node-version (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jun 16, 2024
1 parent 0ac2d47 commit 4fe6443
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docsify-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
node-version: [ 14.x, 16.x, lts/* ]
node-version: [ 'lts/*' ]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 2 additions & 2 deletions e2e/commands/generate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ const docsPath = path.join(genPath, 'docs')
test.before('create temp directory', () => {
// Cleanup if the directory already exists
if (fs.existsSync(genPath)) {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
}

fs.mkdirSync(genPath)
})

test.after('cleanup', () => {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
})

test('generate _sidebar.md', t => {
Expand Down
4 changes: 2 additions & 2 deletions e2e/commands/init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const docsPath = path.join(genPath, 'docs')
test.before('create temp directory', () => {
// Cleanup if the directory already exists
if (fs.existsSync(genPath)) {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
}

fs.mkdirSync(genPath)
})

test.after('cleanup', () => {
fs.rmdirSync(genPath, {recursive: true})
fs.rmSync(genPath, {recursive: true})
})

test('generates docs directory', t => {
Expand Down

0 comments on commit 4fe6443

Please sign in to comment.