Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley-eth committed Apr 16, 2024
1 parent 3ac15b1 commit 52fe6c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
name: test

on: workflow_dispatch

env:
FOUNDRY_PROFILE: ci
on: [push, pull_request]

jobs:
check:
strategy:
fail-fast: true

name: Foundry project
name: Token Types
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -22,13 +16,19 @@ jobs:
with:
version: nightly

- name: Run Forge build
- name: Compile
run: |
forge --version
forge build --sizes
forge build
id: build

- name: Run Forge tests
- name: Test
run: |
forge test -vvv
id: test

- name: Gas Snapshot
run: |
forge snapshot --isolate
env:
FOUNDRY_PROFILE: ci
3 changes: 3 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ runs = 256
[fmt]
bracket_spacing = true
multiline_func_header = "params_first"

[profile.ci.fuzz]
runs = 10_000

0 comments on commit 52fe6c7

Please sign in to comment.