From 22d6ee74358d296f8cf7361e5bb400c5b9e84e14 Mon Sep 17 00:00:00 2001 From: andreivladbrg Date: Wed, 14 Feb 2024 20:03:06 +0200 Subject: [PATCH] ci: run fork tests only monday, wednesday and friday --- .github/workflows/ci-fork.yml | 24 ++++++++++++++++++++++++ .github/workflows/ci.yml | 10 ---------- 2 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/ci-fork.yml diff --git a/.github/workflows/ci-fork.yml b/.github/workflows/ci-fork.yml new file mode 100644 index 00000000..ab463578 --- /dev/null +++ b/.github/workflows/ci-fork.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a5f2555..1347654d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,16 +35,6 @@ jobs: match-path: "test/utils/**/*.sol" name: "Utils 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-profile: "test-optimized" - match-path: "test/fork/**/*.sol" - name: "Fork tests" - coverage: needs: ["lint", "build"] uses: "sablier-labs/reusable-workflows/.github/workflows/forge-coverage.yml@main"