Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spm test of functions #1344

Draft
wants to merge 29 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2a9a1c8
Update Functions to SwiftUI.
granluo Jan 18, 2022
4c122ad
Add mock GoogleService-Info.
granluo Jan 18, 2022
d81bd1d
Update format.
granluo Jan 20, 2022
e9c34ed
Update legacy workflow.
granluo Jan 20, 2022
b80e9af
Update script for testing.
granluo Jan 20, 2022
7727104
Add mock GoogleService-Info.
granluo Jan 20, 2022
b48a4b5
Update path of config.
granluo Jan 20, 2022
28fb38b
Update GoogleService-Info
granluo Jan 20, 2022
887b4aa
Add a logo and update conditional emulator setup.
granluo Jan 21, 2022
e9b26f6
Update format.
granluo Jan 21, 2022
cbf29df
Update copyright.
granluo Jan 24, 2022
3c41093
update year to 2022.
granluo Jan 24, 2022
1edbbc1
Update corner radius to 16 and numberpad.
granluo Jan 24, 2022
f9a16f7
Update format and add viewbuilder to feature block.
granluo Jan 25, 2022
0e3f5a2
Remove tag comments
granluo Jan 25, 2022
ea0dff6
Update UI
granluo Jan 25, 2022
db824f3
Update names.
granluo Jan 28, 2022
b08f2ba
Add async/await and readme.
granluo Feb 1, 2022
7acd2ba
Add readme.
granluo Feb 1, 2022
c6e2626
Resolve conflicts.
granluo Feb 1, 2022
d4af3a6
Update button action name.
granluo Feb 1, 2022
6ce811d
Update padding and plus sign.
granluo Feb 1, 2022
d306925
Update color of description.
granluo Feb 1, 2022
21d6b29
Create CI spm test for Functions.
granluo Feb 1, 2022
75f3c93
Fix matrix.
granluo Feb 1, 2022
eb92d78
Add a scheme for testing purpose.
granluo Feb 1, 2022
3402530
Update scheme.
granluo Feb 1, 2022
cfabc21
Test scripts/
granluo Feb 1, 2022
b65ffa2
Reverse test.
granluo Feb 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 34 additions & 2 deletions .github/workflows/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: macOS-latest
env:
SPM: false
LEGACY: false
LEGACY: true
OS: iOS
DEVICE: iPhone 11
TEST: true
Expand All @@ -37,11 +37,12 @@ jobs:
uses: actions/checkout@master
- name: Setup
run: |
cd functions
cd functions/LegacyFunctionsQuickstart
gem install bundler
bundle install
gem install xcpretty
bundle exec pod install --repo-update
cd ..
../scripts/install_prereqs/functions.sh
- name: Build ObjC
run: ./scripts/test.sh
Expand All @@ -51,3 +52,34 @@ jobs:
run: ./scripts/test.sh
env:
SWIFT_SUFFIX: Swift

spm:
name: spm
runs-on: macOS-latest
strategy:
matrix:
xcode: ["13.0"]
os: [iOS]
include:
- os: iOS
device: iPhone 11
test: false
env:
SETUP: functions
SPM: true
DIR: functions/FunctionsExample/
OS: ${{ matrix.os }}
DEVICE: ${{ matrix.device }}
TEST: ${{ matrix.test }}
XCODE_VERSION: ${{ matrix.xcode }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup
run: |
sudo xcode-select -s "/Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer"
gem install xcpretty
cd $SETUP
../scripts/install_prereqs/${SETUP}.sh
- name: Build and Test SwiftUI (${{ matrix.os }})
run: ./scripts/test.sh
Loading