Skip to content

lint: Formatting

lint: Formatting #6

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: "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"