Skip to content

Commit

Permalink
tech: Refactor GitHub Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
surpher committed Jun 2, 2024
1 parent c218d59 commit 320da04
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,27 @@ jobs:
- name: "🏭 Use Xcode ${{ matrix.xcode }}"
run: sudo xcode-select -switch /Applications/Xcode_${{ matrix.xcode }}.app

- name: "🧰 Prepare tools"
- name: "Build (xcodebuild)"
run: |
Scripts/prepare_build_tools
set -o pipefail && \
xcodebuild build \
-project PactSwift.xcodeproj \
-scheme "$SCHEME"\
-destination "$DESTINATION" \
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES \
| xcbeautify
- name: "🧪 Run tests (xcodebuild)"
run: |
set -o pipefail && xcodebuild -resolvePackageDependencies && xcodebuild clean test -project PactSwift.xcodeproj -scheme "$SCHEME" -destination "$DESTINATION" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES | xcbeautify
set -o pipefail && \
xcodebuild -resolvePackageDependencies && \
xcodebuild test \
-project PactSwift.xcodeproj \
-scheme "$SCHEME"\
-destination "$DESTINATION" \
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES \
GCC_GENERATE_TEST_COVERAGE_FILES=YES \
| xcbeautify
- name: "⚗️ Run tests (swift)"
run: |
Expand Down

0 comments on commit 320da04

Please sign in to comment.