Skip to content

Commit

Permalink
Merge pull request #824 from sablier-labs/ci/run-fork-tests-periodically
Browse files Browse the repository at this point in the history
ci: run fork tests only monday, wednesday and friday
  • Loading branch information
andreivladbrg authored Feb 14, 2024
2 parents 9ebb59a + 897bca6 commit d13598e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci-fork.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "CI Fork tests"

on:
schedule:
- cron: "0 3 * * 1,3,5" # at 3:00 AM UTC on Monday, Wednesday and Friday

jobs:
lint:
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-lint.yml@main"

build:
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-build.yml@main"

test-fork:
needs: ["lint", "build"]
secrets:
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-test.yml@main"
with:
foundry-fuzz-runs: 100
foundry-profile: "test-optimized"
fuzz-seed: true
match-path: "test/fork/**/*.sol"
name: "Fork tests"
12 changes: 0 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ jobs:
match-path: "test/invariant/**/*.sol"
name: "Invariant tests"

test-fork:
needs: ["lint", "build"]
secrets:
RPC_URL_MAINNET: ${{ secrets.RPC_URL_MAINNET }}
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-test.yml@main"
with:
foundry-fuzz-runs: 100
foundry-profile: "test-optimized"
fuzz-seed: true
match-path: "test/fork/**/*.sol"
name: "Fork tests"

coverage:
needs: ["lint", "build"]
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-coverage.yml@main"
Expand Down

0 comments on commit d13598e

Please sign in to comment.