Skip to content

Commit 4d2dd54

Browse files
deployment: add graphite ci-optimizations
1 parent 815a87b commit 4d2dd54

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/papyrus_ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,22 @@ concurrency:
2828
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2929

3030
jobs:
31+
# https://graphite.com/docs/stacking-and-ci
32+
optimize_ci:
33+
runs-on: namespace-profile-small-ubuntu-24-04-amd64
34+
outputs:
35+
skip: ${{ steps.check_skip.outputs.skip }}
36+
steps:
37+
- name: Optimize CI
38+
id: check_skip
39+
uses: withgraphite/graphite-ci-action@main
40+
with:
41+
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}
42+
3143
integration-test:
3244
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
45+
needs: optimize_ci
46+
if: needs.optimize_ci.outputs.skip == 'false'
3347
steps:
3448
- uses: actions/checkout@v4
3549
- uses: ./.github/actions/bootstrap
@@ -44,6 +58,8 @@ jobs:
4458
4559
random-table-test:
4660
runs-on: namespace-profile-medium-ubuntu-24-04-amd64
61+
needs: optimize_ci
62+
if: needs.optimize_ci.outputs.skip == 'false'
4763
steps:
4864
- uses: actions/checkout@v4
4965
# run this job only if the path 'crates/apollo_storage/src/db/**' is changed, because it takes around 2 minutes.

0 commit comments

Comments
 (0)