Skip to content

Simplify

Simplify #111

Workflow file for this run

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: "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 \"Property\" --nmc \"Examples\""
id: "test-unit"
tests-property:
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: "Run Forge build"
run: "forge build"
id: "build"
- name: "Run property-based tests"
run: "FOUNDRY_PROFILE=ci forge test -vvv --mt \"Property\" --nmc \"Examples\""
id: "test-property"
tests-example:
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: "Run Forge build"
run: "forge build"
id: "build"
- name: "Run example tests"
run: "FOUNDRY_PROFILE=ci forge test -vvv --mc \"Examples\""
id: "test-example"