diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ff80c25db6..611b211861 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,6 +22,9 @@ jobs: runs-on: ubuntu-22.04 container: image: ghcr.io/algolia/apic-base + defaults: + run: + shell: bash timeout-minutes: 10 steps: - name: debugging - dump GitHub context @@ -43,7 +46,6 @@ jobs: # Computing jobs that should run - name: Setting diff outputs variables id: diff - shell: bash run: | previousCommit=${{ github.event.before }} baseRef=${{ github.base_ref }} @@ -53,12 +55,10 @@ jobs: - name: Compute specs matrix id: spec-matrix - shell: bash run: yarn workspace scripts createMatrix ${{ steps.diff.outputs.ORIGIN_BRANCH }} - name: Compute the client codegen matrix id: gen-matrix - shell: bash run: yarn workspace scripts createMatrix ${{ steps.diff.outputs.ORIGIN_BRANCH }} clients - name: check that custom actions are built diff --git a/scripts/ci/githubActions/createMatrix.ts b/scripts/ci/githubActions/createMatrix.ts index 850d497e9a..ae344dd686 100644 --- a/scripts/ci/githubActions/createMatrix.ts +++ b/scripts/ci/githubActions/createMatrix.ts @@ -156,6 +156,11 @@ async function createClientMatrix(baseBranch: string): Promise { const shouldRun = clientMatrix.client.length > 0; + const swiftIndex = clientMatrix.client.findIndex((c) => c.language === 'swift'); + if (swiftIndex !== -1) { + clientMatrix.client.splice(swiftIndex, 1); + } + core.setOutput('RUN_GEN', shouldRun); core.setOutput('GEN_MATRIX', JSON.stringify(shouldRun ? clientMatrix : EMPTY_MATRIX)); }