Skip to content

Commit

Permalink
without swift
Browse files Browse the repository at this point in the history
  • Loading branch information
millotp committed Jan 12, 2024
1 parent bd8400a commit b69c655
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
5 changes: 5 additions & 0 deletions scripts/ci/githubActions/createMatrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ async function createClientMatrix(baseBranch: string): Promise<void> {

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));
}
Expand Down

0 comments on commit b69c655

Please # to comment.