chore(deps-dev): bump lint-staged from 15.2.7 to 15.2.10 #146
Workflow file for this run
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: Testing | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Use Node LTS version | |
uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run test suite | |
run: yarn test | |
coverage: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run coverage report | |
run: yarn coverage | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-data-${{ github.run_id }} | |
path: | | |
coverage/**/*.json | |
- name: Coverage summary | |
uses: irongut/[email protected] | |
with: | |
filename: coverage/cobertura-coverage.xml | |
format: 'markdown' | |
output: 'both' | |
- name: Add coverage PR comment | |
uses: marocchino/[email protected] | |
with: | |
recreate: true | |
path: code-coverage-results.md | |
- name: Write to job summary | |
run: cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY |