From 8fdb90dd169b4b9a812dfc56d06ad30e6cf5e9ad Mon Sep 17 00:00:00 2001 From: Thomas Raffray Date: Tue, 2 Apr 2024 17:40:13 +0200 Subject: [PATCH] fix(swift): update CI workflow to a previous working state --- .github/workflows/check.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 75e05d3e4b..0062dff169 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -323,6 +323,13 @@ jobs: if: ${{ matrix.client.language == 'php' && startsWith(env.head_ref, 'chore/renovateBaseBranch') }} run: cd ${{ matrix.client.path }} && composer update + - name: Check for file duplicates in Swift + if: ${{ matrix.client.language == 'swift' }} + 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 duplicate found" + - name: Build clients run: ${{ matrix.client.buildCommand }} @@ -396,13 +403,6 @@ 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