Skip to content

Commit

Permalink
ci: update node versions for cI (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
broofa committed Sep 8, 2023
1 parent 4de23a6 commit 462128b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Expand Up @@ -9,32 +9,32 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x]
node-version: [14.x, 16.x, 18.x, 20.x]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 10
- name: Use Node.js 16.x to build
uses: actions/setup-node@v1
- name: Use Node.js 18.x to build
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
- run: npm install
- run: npm run build
- run: rm -rf node_modules
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run test
env:
CI: true
- run: npm run lint
if: matrix.node-version == '16.x'
if: matrix.node-version == '18.x'
- run: npm run docs:diff
if: matrix.node-version == '16.x'
if: matrix.node-version == '18.x'
- run: npm run test:node
if: matrix.node-version >= '16.x'
if: matrix.node-version >= '18.x'
- run: npm run test:pack
if: matrix.node-version >= '16.x'
if: matrix.node-version >= '18.x'
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -109,7 +109,7 @@
"prettier:fix": "prettier --write '**/*.{js,jsx,json,md}'",
"bundlewatch": "npm run pretest:browser && bundlewatch --config bundlewatch.config.json",
"md": "runmd --watch --output=README.md README_js.md",
"docs": "( node --version | grep -q 'v16' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
"docs": "( node --version | grep -q 'v18' ) && ( npm run build && npx runmd --output=README.md README_js.md )",
"docs:diff": "npm run docs && git diff --quiet README.md",
"build": "./scripts/build.sh",
"prepack": "npm run build",
Expand Down

0 comments on commit 462128b

Please sign in to comment.