Skip to content

Commit 9351100

Browse files
authored
Create separate integration test workflow (#221)
1 parent 8b1465e commit 9351100

File tree

2 files changed

+42
-30
lines changed

2 files changed

+42
-30
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: integration_tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
14+
swift-button-functional-test:
15+
runs-on: macOS-latest
16+
defaults:
17+
run:
18+
working-directory: Samples/Swift/DaysUntilBirthday
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v2
22+
- name: Build test target for Google Sign-in button for Swift
23+
run: |
24+
xcodebuild \
25+
-project DaysUntilBirthday.xcodeproj \
26+
build-for-testing \
27+
-scheme DaysUntilBirthday\ \(iOS\) \
28+
-sdk iphonesimulator \
29+
-destination 'platform=iOS Simulator,name=iPhone 11'
30+
- name: Run test target for Google Sign-in button for Swift
31+
env:
32+
EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
33+
PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
34+
run: |
35+
xcodebuild \
36+
-project DaysUntilBirthday.xcodeproj \
37+
test-without-building \
38+
-scheme DaysUntilBirthday\ \(iOS\) \
39+
-sdk iphonesimulator \
40+
-destination 'platform=iOS Simulator,name=iPhone 11' \
41+
EMAIL_SECRET=$EMAIL_SECRET \
42+
PASSWORD_SECRET=$PASSWORD_SECRET

.github/workflows/tests.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -66,33 +66,3 @@ jobs:
6666
-destination ${{ matrix.destination }} \
6767
test-without-building
6868
69-
swift-button-functional-test:
70-
if: ${{ false }} # Disable integration tests while we figure out OTAs
71-
runs-on: macOS-latest
72-
defaults:
73-
run:
74-
working-directory: Samples/Swift/DaysUntilBirthday
75-
steps:
76-
- name: Checkout
77-
uses: actions/checkout@v2
78-
- name: Build test target for Google Sign-in button for Swift
79-
run: |
80-
xcodebuild \
81-
-project DaysUntilBirthday.xcodeproj \
82-
build-for-testing \
83-
-scheme DaysUntilBirthday\ \(iOS\) \
84-
-sdk iphonesimulator \
85-
-destination 'platform=iOS Simulator,name=iPhone 11'
86-
- name: Run test target for Google Sign-in button for Swift
87-
env:
88-
EMAIL_SECRET : ${{ secrets.EMAIL_SECRET }}
89-
PASSWORD_SECRET : ${{ secrets.PASSWORD_SECRET }}
90-
run: |
91-
xcodebuild \
92-
-project DaysUntilBirthday.xcodeproj \
93-
test-without-building \
94-
-scheme DaysUntilBirthday\ \(iOS\) \
95-
-sdk iphonesimulator \
96-
-destination 'platform=iOS Simulator,name=iPhone 11' \
97-
EMAIL_SECRET=$EMAIL_SECRET \
98-
PASSWORD_SECRET=$PASSWORD_SECRET

0 commit comments

Comments
 (0)