Fix/Review Fixes #29
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: test | |
concurrency: | |
cancel-in-progress: true | |
group: ${{github.workflow}}-${{github.ref}} | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: Foundry project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: install dependencies | |
run: npm ci | |
- name: check formatting | |
run: npx prettier --check 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol' | |
- name: Run Forge build | |
run: | | |
forge --version | |
forge build --sizes | |
id: build | |
- name: Run tests | |
shell: bash | |
run: | | |
forge test | |
id: test | |
- name: Upload Selectors to Openchain.xyz | |
run: | | |
forge selectors upload --all |