[deps]: Update npm minor #90
This file contains hidden or 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: Test | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: | |
- 'main' | |
- 'rc' | |
- 'hotfix-rc-*' | |
workflow_dispatch: | |
jobs: | |
testing: | |
name: Run tests | |
runs-on: ubuntu-22.04 | |
permissions: | |
checks: write | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Get Node version | |
id: retrieve-node-version | |
run: | | |
NODE_NVMRC=$(cat .nvmrc) | |
NODE_VERSION=${NODE_NVMRC/v/''} | |
echo "node_version=$NODE_VERSION" >> $GITHUB_OUTPUT | |
- name: Set up Node | |
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
cache: 'npm' | |
cache-dependency-path: '**/package-lock.json' | |
node-version: ${{ steps.retrieve-node-version.outputs.node_version }} | |
- name: Print environment | |
run: | | |
node --version | |
npm --version | |
- name: Install Node dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test -- --coverage | |
- name: Report test results | |
uses: dorny/test-reporter@6e6a65b7a0bd2c9197df7d0ae36ac5cee784230c # v2.0.0 | |
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && !cancelled() }} | |
with: | |
name: Test Results | |
path: "junit.xml" | |
reporter: jest-junit | |
fail-on-error: true | |
- name: Upload coverage to codecov.io | |
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2 | |
- name: Upload results to codecov.io | |
uses: codecov/test-results-action@f2dba722c67b86c6caa034178c6e4d35335f6706 # v1.1.0 |