Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanblock committed Apr 29, 2024
1 parent 96e2f6d commit 772e88d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
# Go
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Windows
if: matrix.os == 'windows-latest'
run: |
npm config set script-shell "C:\\Program Files\\Git\\bin\\bash.exe"
- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -46,7 +46,14 @@ jobs:
- name: Install
run: npm install

- name: Test (Node.js <= 16.x only)
if: matrix.node-version <= '16.x'
run: npm run test:nolint
env:
CI: true

- name: Test
if: matrix.node-version > '16.x'
run: npm test
env:
CI: true
Expand All @@ -73,10 +80,10 @@ jobs:
# Go
steps:
- name: Check out repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "eslint . --fix",
"test:unit": "cross-env tape 'test/*-test.js' | tap-arc",
"coverage": "nyc --reporter=lcov --reporter=text-summary npm run test:unit",
"test:nolint": "npm run coverage",
"test": "npm run lint && npm run coverage",
"rc": "npm version prerelease --preid RC",
"build": "rollup -c",
Expand Down

0 comments on commit 772e88d

Please sign in to comment.