-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix cicd #1
Fix cicd #1
Changes from all commits
9ac73e3
3211314
4e599bd
5325f58
98a5664
8040e66
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
name: test | ||
|
||
on: workflow_dispatch | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
@@ -15,7 +20,15 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
submodules: false | ||
|
||
- name: Install Bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: latest | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
@@ -30,5 +43,5 @@ jobs: | |
|
||
- name: Run Forge tests | ||
run: | | ||
forge test -vvv | ||
id: test | ||
forge test --fork-url ${{secrets.RPC_OP}} -vvv --via-ir | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. didn't know about the test's There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It means that, for the test scope, we will fork the network's state. We are not running it in the testnet, but locally. |
||
id: test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you ever push to main?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not ideally. But can happen hueuheuehu