Skip to content

Commit

Permalink
feat(ci): add graphite CI optimization (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
duongdev authored Sep 12, 2024
1 parent bcec905 commit a6cd44b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,22 @@ on:
- workflow_dispatch

jobs:
optimize_ci:
runs-on: ubuntu-latest # or whichever runner you use for your CI
outputs:
skip: ${{ steps.check_skip.outputs.skip }}
steps:
- name: Optimize CI
id: check_skip
uses: withgraphite/graphite-ci-action@main
with:
graphite_token: ${{ secrets.GRAPHITE_CI_OPTIMIZER_TOKEN }}

build_api:
name: Build API
runs-on: ubuntu-latest
needs: optimize_ci
if: needs.optimize_ci.outputs.skip == 'false'

steps:
- name: Checkout
Expand Down Expand Up @@ -45,6 +58,8 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
needs: optimize_ci
if: needs.optimize_ci.outputs.skip == 'false'

steps:
- name: Checkout
Expand Down

0 comments on commit a6cd44b

Please sign in to comment.