Merge pull request #416 from mohd-akram/improve-perf #371
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Node CI | |
on: [push, pull_request] | |
jobs: | |
# We do not strictly need an install-deps job | |
# because we do not kick of multiple jobs in parallel | |
# that would all try to install deps when the key changes. | |
# Skipping this saves a few seconds until the point where we need it. | |
# install-deps: | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# node-version: [12.x, 14.x, 16.x] | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: ./.github/actions/configure-nodejs | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# lookup-only: 'true' # We only want to lookup from the cache - if a hit, this job does nothing | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/configure-nodejs | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm run build --if-present | |
- run: npm run test:full |