From c5ecb8cab78430d03d8c80372f7ae793276db290 Mon Sep 17 00:00:00 2001 From: Luis Ezcurdia Date: Fri, 19 Jan 2024 23:49:54 -0600 Subject: [PATCH 1/4] Setup Github Actions CI --- .github/workflows/swift.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/swift.yml diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml new file mode 100644 index 0000000..12d4b7d --- /dev/null +++ b/.github/workflows/swift.yml @@ -0,0 +1,16 @@ +name: Swift CI +on: [push, pull_request] + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Set up Xcode + uses: actions/setup-xcode@v2 + with: + xcode-version: 15.2.0 + - name: Build and Test + run: | + xcodebuild clean test -project SecurePass.xcodeproj -scheme SecurePass -destination "platform=iOS Simulator,name=iPhone 15" From 3bdc6b72861ab3f10407ab0ba915861be87b6e5a Mon Sep 17 00:00:00 2001 From: Luis Ezcurdia Date: Fri, 19 Jan 2024 23:52:48 -0600 Subject: [PATCH 2/4] Remove xcode step --- .github/workflows/swift.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 12d4b7d..daefca6 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -7,10 +7,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Xcode - uses: actions/setup-xcode@v2 - with: - xcode-version: 15.2.0 - name: Build and Test run: | xcodebuild clean test -project SecurePass.xcodeproj -scheme SecurePass -destination "platform=iOS Simulator,name=iPhone 15" From 6f2719930fd554cfb3d03c1f06c0f939ad6aef47 Mon Sep 17 00:00:00 2001 From: Luis Ezcurdia Date: Fri, 19 Jan 2024 23:55:28 -0600 Subject: [PATCH 3/4] Run on iPhone 14 --- .github/workflows/swift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index daefca6..04438e4 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -9,4 +9,4 @@ jobs: uses: actions/checkout@v2 - name: Build and Test run: | - xcodebuild clean test -project SecurePass.xcodeproj -scheme SecurePass -destination "platform=iOS Simulator,name=iPhone 15" + xcodebuild clean test -project SecurePass.xcodeproj -scheme SecurePass -destination "platform=iOS Simulator,name=iPhone 14" From c29ee11e2ef0222098a0f93a7876603cdb99a783 Mon Sep 17 00:00:00 2001 From: Luis Ezcurdia Date: Fri, 19 Jan 2024 23:58:27 -0600 Subject: [PATCH 4/4] It will run the tests on any available iOS simulator in the CI environment. --- .github/workflows/swift.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift.yml b/.github/workflows/swift.yml index 04438e4..a1032cb 100644 --- a/.github/workflows/swift.yml +++ b/.github/workflows/swift.yml @@ -1,5 +1,5 @@ name: Swift CI -on: [push, pull_request] +on: [push] jobs: build: @@ -9,4 +9,4 @@ jobs: uses: actions/checkout@v2 - name: Build and Test run: | - xcodebuild clean test -project SecurePass.xcodeproj -scheme SecurePass -destination "platform=iOS Simulator,name=iPhone 14" + xcodebuild clean test -project SecurePass.xcodeproj -scheme SecurePass -destination "platform=iOS Simulator,name=Any iOS Simulator Device"