From ce9b3170c409f5969e26f19123bf1103d91010ad Mon Sep 17 00:00:00 2001 From: jihoonahn Date: Fri, 1 Nov 2024 14:14:56 +0900 Subject: [PATCH] Update tests --- .github/workflows/ci.yml | 6 +----- Scripts/test.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 Scripts/test.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6d930e..9265084 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,9 +27,5 @@ jobs: run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app - name: Skip macro validation run: defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES - - name: Build Builder - run: swift build - name: Run tests - run: | - swift test - swift test -c release + run: exec ./Scripts/test.sh diff --git a/Scripts/test.sh b/Scripts/test.sh new file mode 100644 index 0000000..b9a87ab --- /dev/null +++ b/Scripts/test.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +export LC_ALL=en_US.UTF-8 + +SCHEME="SFSymbolsMacro" + +DESTINATION="platform=macOS" + +set -o pipefail && xcodebuild clean build test -scheme $SCHEME \ + -destination $DESTINATION | xcpretty \ No newline at end of file