build(nitro-protocol): upgrade Solidity version #116
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: Contracts | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
paths: ["packages/nitro-protocol/**", ".github/workflows/contracts.yml"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/nitro-protocol | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18.15.0" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn | |
- name: Compile contracts | |
run: yarn hardhat compile | |
- name: Run gas benchmarks | |
run: yarn benchmark:diff | |
- name: Run contract tests | |
run: yarn test:contracts | |
- name: Archive logs | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: logs | |
path: ./**/*.log |