Skip to content

Commit

Permalink
ci: Pass github.workspace to reusable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
surpher committed Apr 26, 2024
1 parent 4e44971 commit 52d7fd6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ name: "Build and Test"

on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
- 'chore/**'
- 'docs/**'
- 'feat/**'
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/test_macos14_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,4 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.codecov_token }}
file: ".build/artifacts/${{ env.SCHEME }}-TestResultBundle.xcresult"
directory: ".build/artifacts"
fail_ci_if_error: true
flags: unittests
name: PactSwiftMockServer
verbose: true
11 changes: 1 addition & 10 deletions Support/build_test
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ source "$SOURCE_DIR/utils.sh"

# Properties
SCHEME_TARGET_PAIRS=()
BUILD_PATH="$SOURCE_DIR/../.build"

###############
# "private"
Expand Down Expand Up @@ -78,14 +77,6 @@ fi
for INDEX in "${SCHEME_TARGET_PAIRS[@]}"; do
SCHEME="${INDEX%%:::*}"
TARGET="${INDEX##*::}"
RESULT_BUNDLE_PATH="$BUILD_PATH/artifacts/$SCHEME-TestResultBundle.xcresult"

if [ $(folderExists "$RESULT_BUNDLE_PATH") == true ]; then
# Remove build data by previous runs
echo "ℹ️ Reoving results bundle from previous runs..."
executeCommand "rm -fr $RESULT_BUNDLE_PATH"
fi

echo "🧪 Running tests"
executeCommand "xcodebuild -project \"PactSwiftMockServer.xcodeproj\" -scheme \"$SCHEME\" -destination \"$TARGET\" -enableCodeCoverage YES -derivedDataPath \"$BUILD_PATH/DerivedData\" -resultBundlePath \"$RESULT_BUNDLE_PATH\" GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES build test | xcbeautify"
executeCommand "xcodebuild -project \"PactSwiftMockServer.xcodeproj\" -scheme \"$SCHEME\" -destination \"$TARGET\" -enableCodeCoverage YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES build test | xcbeautify"
done

0 comments on commit 52d7fd6

Please sign in to comment.