From c4468ffc79bcfa51c4397c7bfc0af47a2fb48e9f Mon Sep 17 00:00:00 2001 From: Raphael Martin Date: Fri, 28 Oct 2022 12:21:02 -0300 Subject: [PATCH] Added tests action --- .github/workflows/tests.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d76d6a7 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,13 @@ +name: tests + +on: [push] + +jobs: + run_tests: + runs-on: macos-12.6 + steps: + - uses: actions/checkout@v1 + - name: Select Xcode + run: sudo xcode-select -switch /Applications/Xcode_13.4.1.app && /usr/bin/xcodebuild -version + - name: Run tests + run: xcodebuild test -project "SwiftUI Study.xcodeproj" -scheme "SwiftUI Study (iOS)" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 8,OS=15.5' | xcpretty && exit ${PIPESTATUS[0]}