-
Notifications
You must be signed in to change notification settings - Fork 30
58 lines (58 loc) · 2.16 KB
/
unit-testing.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Unit Tests
on:
pull_request:
jobs:
build-and-test:
runs-on: macOS-13
if: github.event.pull_request.head.repo.full_name == github.repository
env:
GITHUB_TOKEN: ${{ secrets.IOS_DEV_CI_PAT }}
steps:
- name: Print System Info
run: uname -a
- name: Check available Xcodes
run: ls -la /Applications | grep Xcode
- name: Force Xcode we use for development
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app
- name: Checkout main repo and submodules
uses: actions/checkout@v4
with:
submodules: true
token: ${{ secrets.IOS_DEV_CI_PAT }}
- name: Checkout Adobe RMSDK
uses: actions/checkout@v4
with:
repository: NYPL-Simplified/DRM-iOS-AdeptConnector
token: ${{ secrets.IOS_DEV_CI_PAT }}
path: ./DRM-iOS-AdeptConnector
- name: Add Private Repo Auth
# This ensures SPM can resolve dependencies for private repos.
# Other options included using `-usePackageSupportBuiltinSCM` (or
# possibly `-scmProvider system`) in xcodebuild
run: echo "GITHUB_REPO_OWNER=$GITHUB_REPO_OWNER" && git config --global --add url."https://${GITHUB_TOKEN}@github.com/${GITHUB_REPO_OWNER}".insteadOf "https://github.com/${GITHUB_REPO_OWNER}"
env:
GITHUB_REPO_OWNER: ${{ github.repository_owner }}
- name: Set up repo for DRM build
run: exec ./scripts/setup-repo-drm.sh
env:
BUILD_CONTEXT: ci
- name: Prepare for Carthage build
run: ./scripts/build-dependencies.sh
env:
BUILD_CONTEXT: ci
- name: Carthage Bootstrap
uses: NYPL-Simplified/carthage-bootstrap@main
with:
github-token: ${{ secrets.IOS_DEV_CI_PAT }}
platform: iOS
use-xcframeworks: true
- name: Fetch AudioEngine
run: cd ./NYPLAEToolkit && ./scripts/fetch-audioengine.sh
- name: Run SimplyE tests
run: ./scripts/xcode-test.sh simplye
env:
BUILD_CONTEXT: ci
# - name: Run Open eBooks tests
# run: ./scripts/xcode-test.sh openebooks
# env:
# BUILD_CONTEXT: ci