Skip to content

Commit

Permalink
ci: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Aug 5, 2024
1 parent 4dd89cf commit 67b31f1
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,15 @@ jobs:
runs-on: 'ubuntu-latest'
strategy:
matrix:
node_version: [12, 14, 16]
node_version: [12, 14, 16, 18, 20, 22]
os: ['ubuntu-latest']
steps:
- name: 'Checkout'
uses: 'actions/checkout@master'

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

- name: 'Cache node modules'
uses: 'actions/cache@v2'
env:
cache-name: 'cache-node-modules'
persist-credentials: false
- uses: actions/setup-node@v4
with:
path: '~/.npm' # npm cache files are stored in `~/.npm` on Linux/macOS
key: "${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}"
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: 'Install Dependencies'
run: 'npm ci'

- name: 'Run Tests'
run: 'npm test'
node-version: ${{ matrix.node_version }}
cache: 'npm'
- run: npm ci --ignore-scripts
- run: npm test

0 comments on commit 67b31f1

Please sign in to comment.