-
Notifications
You must be signed in to change notification settings - Fork 24
34 lines (28 loc) · 1.09 KB
/
unit_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Unit Tests
# READ THIS BEFORE MODIFYING: https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
# And this: https://nathandavison.com/blog/github-actions-and-the-threat-of-malicious-pull-requests
# WARNING ONLY EVER USE A GITHUB_TOKEN THAT HAS **ONLY** READ_REPO ACCESS
# (Because we invoke the local gradlew command for reproducibility)
# read-only repo token
# no access to secrets
on:
pull_request:
branches:
- develop # PRs from external developers or project team
- main # PRs for triggering a release
jobs:
unit_tests:
name: Swift Build and Test for ${{ matrix.destination }}
runs-on: [macos-latest]
strategy:
matrix:
destination: [
'platform=iOS Simulator,OS=16.2,name=iPhone 11 Pro'
]
steps:
- uses: actions/checkout@v2
- name: Build
run: |
xcodebuild clean test -project Herald-for-iOS.xcodeproj -scheme Herald -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
env:
destination: ${{ matrix.destination }}