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

Fix cicd #1

Merged
merged 6 commits into from
Oct 23, 2024
Merged
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
21 changes: 17 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: test

on: workflow_dispatch
on:
push:
branches: [main]
Copy link

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?

Copy link
Member Author

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

pull_request:
branches: [main]
workflow_dispatch:

env:
FOUNDRY_PROFILE: ci
Expand All @@ -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
Expand All @@ -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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

didn't know about the test's fork flag, does this mean the tests are being run on the testnet?

Copy link
Member Author

Choose a reason for hiding this comment

The 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
Loading