lint: Formatting #6
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: "CI" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
lint: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Check crysol formatting" | |
run: "forge fmt --check" | |
- name: "Check examples formatting" | |
run: "forge fmt ./examples --check" | |
tests-unit: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Check out repo" | |
uses: "actions/checkout@v3" | |
with: | |
submodules: "recursive" | |
- name: "Setup Go" | |
uses: "actions/setup-go@v4" | |
- name: "Install Geas" | |
run: "go install github.com/fjl/geas/cmd/geas@latest" | |
- name: "Install Foundry" | |
uses: "foundry-rs/foundry-toolchain@v1" | |
with: | |
version: "nightly" | |
- name: "Run Forge build" | |
run: "forge build" | |
id: "build" | |
- name: "Run unit tests" | |
run: "FOUNDRY_PROFILE=ci forge test -vvv --nmt \"Differential\"" | |
id: "test-unit" | |