diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index d6a5975ef..33d2d9b65 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -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!"