Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BCLeFevre committed Mar 27, 2024
1 parent 0e603ba commit 8a1c577
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Test CI

on:
push:
branches: [main]
tags: ["*"]
pull_request:
types: [opened, reopened, synchronize]

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
forge:
name: Run Forge Tests (via_ir = true; fuzz_runs = 5000)
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GH_PAT_TOKEN }}
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Install forge dependencies
run: forge install

- name: Run tests
run: FOUNDRY_PROFILE=test forge test -vvv
4 changes: 4 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ remappings = [
'forge-std/=lib/forge-std/src/',
]

[profile.test]
src = 'test/foundry'
cache_path='test-cache'

# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options

0 comments on commit 8a1c577

Please sign in to comment.