npm(deps): bump the npm-dependencies group across 1 directory with 9 updates #48
Workflow file for this run
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 with jest | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| # schedule: | |
| # - cron: '0 0 * * *' # Runs every day at midnight | |
| jobs: | |
| test: | |
| name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-latest | |
| # - windows-latest | |
| # - macOS-latest | |
| architecture: | |
| - x64 | |
| node_version: | |
| - 16 | |
| - 18 | |
| - 20 | |
| - latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache Node.js modules | |
| id: cache-npm | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | |
| name: List the state of node modules | |
| continue-on-error: true | |
| run: npm list --include dev | |
| - name: Use Node.js ${{ matrix.node_version }} - ${{ matrix.architecture }} on ${{ matrix.os }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node_version }} | |
| architecture: ${{ matrix.architecture }} | |
| - name: Install dependencies | |
| run: npm install --include dev | |
| # env: | |
| # NODE_ENV: development | |
| - name: Run tests | |
| run: npm test | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v5 | |
| if: success() | |
| with: | |
| name: codecov-umbrella | |
| fail_ci_if_error: true | |
| verbose: true | |
| token: ${{ secrets.CODECOV_TOKEN }} |