🔀 Merge pull request #696 from kei-g/depend… #510
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
jobs: | |
coverage: | |
name: Check code coverages on Node.js ${{ matrix.node }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node: | |
- 18 | |
- 20 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
node-version: ${{ matrix.node }} | |
- name: Upgrade npm | |
run: npm install npm@latest -g | |
- name: Setup modules | |
run: npm ci | |
- name: Check code coverages | |
run: npm test | |
- if: ${{ always() }} | |
name: Archive code coverages report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report-${{ github.event.repository.name }}-${{ matrix.node }} | |
path: coverage | |
name: Coverage | |
on: | |
push: | |
branches: | |
- main |