Adapting the tutorial island guide to focus on Redstone #1802
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: check-contracts | |
on: | |
pull_request: | |
branches: | |
- main | |
env: | |
FOUNDRY_PROFILE: ci | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: setup | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: build | |
working-directory: contracts | |
run: | | |
forge --version | |
forge build --sizes | |
id: build | |
- name: test | |
working-directory: contracts | |
run: | | |
forge test -vvv | |
id: test | |
- name: fmt | |
working-directory: contracts | |
run: | | |
forge fmt --check | |
id: fmt |