Skip to content

Commit

Permalink
fix(swift): better macOS CI (#2901)
Browse files Browse the repository at this point in the history
Co-authored-by: Cl茅ment Vannicatte <vannicattec@gmail.com>
  • Loading branch information
Fluf22 and shortcuts committed Mar 22, 2024
1 parent b40631e commit 93bb561
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check.yml
Expand Up @@ -368,7 +368,7 @@ jobs:
- client_gen
if: |
always() &&
github.ref == 'refs/heads/main' &&
startsWith(github.ref, 'refs/heads/chore/prepare-release-') &&
needs.setup.outputs.RUN_GEN == 'true' &&
needs.setup.outputs.RUN_MACOS_SWIFT_CTS == 'true' &&
!contains(needs.*.result, 'cancelled') &&
Expand Down Expand Up @@ -396,6 +396,13 @@ jobs:
- name: Run CTS
run: yarn cli cts run swift ${{ fromJSON(needs.setup.outputs.SWIFT_DATA).toRun }}

- name: Run Swift CocoaPods validity
run: |
set -eo pipefail
cd clients/algoliasearch-client-swift
[ $(find Sources -type f | rev | cut -d '/' -f1 | rev | sort | uniq -d | wc -l) -gt 0 ] && echo "Duplicates found" && exit 1 || echo "No duplicates found"
pod lib lint --allow-warnings
codegen:
runs-on: ubuntu-22.04
timeout-minutes: 15
Expand Down

1 comment on commit 93bb561

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.