Bump actions/checkout from 4 to 5 (#252) #113
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: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [18, 20, 22] | |
| name: Node ${{ matrix.node }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Use node ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install | |
| run: npm install --ignore-scripts | |
| - name: Install Playwright | |
| if: matrix.node == 22 | |
| run: npx playwright install --with-deps | |
| - name: Test | |
| run: npm test | |
| - name: Test browsers | |
| if: matrix.node == 22 | |
| run: npm run test-browsers-local | |
| - name: Coverage | |
| run: npm run coverage | |
| - name: Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| files: coverage/lcov.info | |
| token: ${{ secrets.CODECOV_TOKEN }} |