Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
- Bump dependencies
- Specify the tests on the command line (needed for node 22)
- Continue to try all builds even if one of them fails
- Test on Node 22
  • Loading branch information
bhousel committed Sep 10, 2024
1 parent 217332a commit 4d91ac7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: build

on:
Expand All @@ -9,19 +6,23 @@ on:
pull_request:
branches: [ main ]

env:
FORCE_COLOR: 2

jobs:
build:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
node-version: [18, 20]
node-version: ['18', '20', '22']

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 }}
- run: npm install
- run: npm run test
- run: npm run all
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
"build:cjs": "esbuild ./index.mjs --platform=node --format=cjs --sourcemap --outfile=./dist/index.cjs",
"lint": "eslint index.mjs test/*.js",
"test": "run-s build test:node",
"test:node": "c8 node --test test/"
"test:node": "c8 node --test test/*.js"
},
"devDependencies": {
"c8": "^10.1.2",
"esbuild": "^0.23.0",
"eslint": "^9.7.0",
"esbuild": "^0.23.1",
"eslint": "^9.10.0",
"npm-run-all": "^4.1.5",
"shx": "^0.3.4"
},
Expand Down

0 comments on commit 4d91ac7

Please sign in to comment.