Skip to content

Commit

Permalink
upgrade workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall committed Jan 2, 2024
1 parent 904b6a4 commit 2530c89
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
check-license:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: "^1.18.0"
- run: go install github.com/google/addlicense@latest
Expand All @@ -22,18 +22,16 @@ jobs:
strategy:
matrix:
node-version:
- "14"
- "16"
- "18"
- "20"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
cache-dependency-path: package-lock.json

- run: npm i -g [email protected]
- run: npm ci
- run: npm test
- run: npm outdated
Expand All @@ -43,13 +41,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "16"
cache: npm
cache-dependency-path: package-lock.json

- run: npm i -g [email protected]
- run: npm install --package-lock-only --ignore-scripts
- run: "git diff --exit-code -- package-lock.json || (echo 'Error: package-lock.json is changed during npm install! Please make sure to use npm >= 6.9.0 and commit package-lock.json.' && false)"

0 comments on commit 2530c89

Please sign in to comment.