chore(deps): update devdependencies #1360
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: Coverage | |
on: | |
pull_request: | |
permissions: | |
# Required to checkout the code | |
contents: read | |
jobs: | |
coverage-pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Install pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
- name: Set node version to 20 | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install deps | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Test | |
run: pnpm run test:coverage | |
continue-on-error: true | |
- name: Upload Coverage | |
uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4.4.2 | |
with: | |
name: coverage-${{ github.run_id }} | |
path: coverage | |
retention-days: 15 | |
coverage-main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
ref: main | |
- name: Install pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
- name: Set node version to 20 | |
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- name: Install deps | |
run: pnpm install | |
- name: Build | |
run: pnpm run build | |
- name: Test | |
run: pnpm run test:coverage | |
continue-on-error: true | |
- name: Upload Coverage | |
uses: actions/upload-artifact@84480863f228bb9747b473957fcc9e309aa96097 # v4.4.2 | |
with: | |
name: coverage-main | |
path: coverage |