Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ci #112

Merged
merged 6 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: test
name: CI

on: workflow_dispatch
on:
push:
branches:
- main
pull_request:
workflow_dispatch:

env:
FOUNDRY_PROFILE: ci
Expand All @@ -13,7 +18,7 @@ jobs:
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -22,13 +27,24 @@ jobs:
with:
version: nightly

- name: Run Forge build
- name: Show Forge version
run: |
forge --version

- name: Run Forge fmt
run: |
forge fmt --check
id: fmt

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

- name: Run Forge tests
run: |
forge test -vvv
id: test
#- name: Check gas snapshots
# run: forge snapshot --check

#- name: Run Forge tests
# run: |
# forge test -vvv
# id: test
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@
[submodule "lib/murky"]
path = lib/murky
url = https://github.com/dmfxyz/murky
[submodule "lib/solady"]
path = lib/solady
url = https://github.com/vectorized/solady
[submodule "lib/v3-periphery"]
path = lib/v3-periphery
url = https://github.com/Uniswap/v3-periphery
2 changes: 1 addition & 1 deletion test/fork/v2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol";
import {VaultManagerV2UpgradeMock} from "../VaultManagerV2UpgradeMock.sol";

/**
* Notes: Fork test
* Notes: Fork test
* - block 19621640
* - $3,545.56 / ETH
*/
Expand Down
2 changes: 1 addition & 1 deletion test/fork/v3/v3.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {ERC20} from "@solmate/src/tokens/ERC20.sol";
import {Upgrades} from "openzeppelin-foundry-upgrades/Upgrades.sol";

/**
* Notes: Fork test
* Notes: Fork test
* - block 19621640
* - $3,545.56 / ETH
*/
Expand Down