Skip to content

Commit

Permalink
ci: add to ci-fork
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg committed Sep 15, 2024
1 parent e194f03 commit f137061
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-deep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ jobs:
match-path: "test/fork/**/*.sol"
name: "Fork tests"

notify_on_failure:
if: failure() # This job only runs if a failure occurs in any previous jobs
notify-on-failure:
if: failure() # Runs only if a failure occurs in any previous jobs
runs-on: "ubuntu-latest"
steps:
- name: "Send Slack notification"
Expand Down
36 changes: 24 additions & 12 deletions .github/workflows/ci-fork.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "CI Fork and Util tests"

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

jobs:
lint:
Expand All @@ -12,16 +12,16 @@ jobs:
uses: "sablier-labs/reusable-workflows/.github/workflows/forge-build.yml@main"

test-fork:
needs: ["lint", "build"]
secrets:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
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"
needs: ["lint", "build"]
secrets:
MAINNET_RPC_URL: ${{ secrets.MAINNET_RPC_URL }}
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"

test-utils:
needs: ["lint", "build"]
Expand All @@ -30,3 +30,15 @@ jobs:
foundry-profile: "test-optimized"
match-path: "test/utils/**/*.sol"
name: "Utils tests"

notify-on-failure:
if: failure() # Runs only if a failure occurs in any previous jobs
runs-on: "ubuntu-latest"
steps:
- name: "Send Slack notification"
uses: "rtCamp/action-slack-notify@v2"
env:
SLACK_CHANNEL: "#ci-notifications"
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_USERNAME: "GitHub CI"
SLACK_MESSAGE: "CI Workflow failed for ${{ github.repository }} on branch ${{ github.ref }} at job ${{ github.job }}."

0 comments on commit f137061

Please sign in to comment.