Skip to content

Commit

Permalink
chore: use Graphite to reduce CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
pregnantboy committed Dec 24, 2024
1 parent 10d891d commit bdbc86e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
name: Test and build
on: [push]
jobs:
optimize_ci:
runs-on: ubuntu-latest
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_TOKEN }}
test-and-build:
name: Test and Build
runs-on: ubuntu-latest
needs: optimize_ci
if: needs.optimize_ci.outputs.skip == 'false'
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
Expand Down

0 comments on commit bdbc86e

Please sign in to comment.