From da3d16b5d0bdd4a7e52cdd0d3bf5b675176d1861 Mon Sep 17 00:00:00 2001 From: Benjamin Wood Date: Tue, 21 Nov 2023 00:11:20 +0000 Subject: [PATCH] Use selectiveci/setup-selective github action Co-authored-by: Nate Vick --- .github/workflows/main.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 451710d..d2b03fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,13 +16,6 @@ jobs: matrix: ci_node_total: [4] ci_node_index: [0, 1, 2, 3] - env: - SELECTIVE_API_KEY: ${{ secrets.SELECTIVE_API_KEY }} - SELECTIVE_RUN_ID: ${{ github.run_id }} - SELECTIVE_RUN_ATTEMPT: ${{ github.run_attempt }} - SELECTIVE_PR_TITLE: ${{ github.event.pull_request.title }} - SELECTIVE_RUNNER_ID: ${{ matrix.ci_node_index }} - CLONE_PAT: ${{ secrets.CLONE_PAT }} steps: - uses: actions/checkout@v3 @@ -33,6 +26,12 @@ jobs: ruby-version: "3.2.2" bundler-cache: true + - name: Setup Selective + uses: selectiveci/setup-selective@v1 + with: + api-key: ${{ secrets.SELECTIVE_API_KEY }} + runner-id: ${{ matrix.ci_node_index }} + - name: Run the default task run: bundle exec selective rspec