From 25456aba8f6bd4f0e04b2d75c829b3f92106cc17 Mon Sep 17 00:00:00 2001 From: Saroar Khandoker Date: Wed, 20 Oct 2021 16:00:12 +0300 Subject: [PATCH 1/3] Create swift_test.yml --- .github/workflows/swift_test.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/swift_test.yml diff --git a/.github/workflows/swift_test.yml b/.github/workflows/swift_test.yml new file mode 100644 index 0000000..9c4627d --- /dev/null +++ b/.github/workflows/swift_test.yml @@ -0,0 +1,17 @@ +name: Swift + +on: + pull_request: + branches: [ main, develop ] + +jobs: + Run_workspace_Tests: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v1 + - name: List available Xcode versions + run: ls /Applications | grep Xcode + - name: Select Xcode + run: sudo xcode-select -switch /Applications/Xcode_13.0.app && /usr/bin/xcodebuild -version + - name: Run unit tests + run: xcodebuild test -scheme Addame -workspace Addame.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.2' | xcpretty && exit ${PIPESTATUS[0]} From 4253b89274d9b51fd1115fc56c575cddf657098e Mon Sep 17 00:00:00 2001 From: Saroar Khandoker Date: Wed, 20 Oct 2021 16:04:38 +0300 Subject: [PATCH 2/3] Update swift_test.yml --- .github/workflows/swift_test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift_test.yml b/.github/workflows/swift_test.yml index 9c4627d..c3380be 100644 --- a/.github/workflows/swift_test.yml +++ b/.github/workflows/swift_test.yml @@ -1,4 +1,4 @@ -name: Swift +name: SwiftTest on: pull_request: From b2890106d6377a27118aec14b0256685d0dfa6f7 Mon Sep 17 00:00:00 2001 From: Saroar Khandoker Date: Wed, 20 Oct 2021 16:11:10 +0300 Subject: [PATCH 3/3] Update swift_test.yml --- .github/workflows/swift_test.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/swift_test.yml b/.github/workflows/swift_test.yml index c3380be..eb89b4d 100644 --- a/.github/workflows/swift_test.yml +++ b/.github/workflows/swift_test.yml @@ -8,10 +8,7 @@ jobs: Run_workspace_Tests: runs-on: macOS-latest steps: - - uses: actions/checkout@v1 - - name: List available Xcode versions - run: ls /Applications | grep Xcode - - name: Select Xcode - run: sudo xcode-select -switch /Applications/Xcode_13.0.app && /usr/bin/xcodebuild -version - - name: Run unit tests - run: xcodebuild test -scheme Addame -workspace Addame.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.2' | xcpretty && exit ${PIPESTATUS[0]} + - name: Build and Test + run: swift test + env: + DEVELOPER_DIR: /Applications/Xcode_11.4.app/Contents/Developer