test: use parallel mode by default #71
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: Tests | |
on: | |
push: | |
branches: [master, develop] | |
pull_request: | |
branches: [master, develop] | |
jobs: | |
test: | |
name: Solidity tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run Hardhat Solidity tests | |
run: pnpm test | |
coverage: | |
name: Solidity coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run Solidity coverage | |
run: pnpm test:coverage | |
- name: Produce the coverage report | |
uses: insightsengineering/coverage-action@v2 | |
with: | |
path: ./coverage/cobertura-coverage.xml | |
publish: true | |
diff: true | |
diff-branch: master | |
diff-storage: _core_coverage_reports | |
coverage-summary-title: "Code Coverage Summary" |