-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (45 loc) · 1.53 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
name: Unit Tests
on: [ pull_request, workflow_dispatch ]
jobs:
build-and-test:
runs-on: macOS-13
steps:
- name: Force Xcode 15
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app
- name: Checkout main repo and submodules
uses: actions/checkout@v3
- name: Set up repo for nonDRM build
run: exec ./scripts/setup-repo-nodrm-github.sh
env:
BUILD_CONTEXT: ci
# with:
# submodules: true
# token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
# - name: Checkout Certificates
# uses: actions/checkout@v3
# with:
# repository: ThePalaceProject/mobile-certificates
# token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
# path: ./mobile-certificates
# - name: Checkout Adobe RMSDK
# uses: actions/checkout@v3
# with:
# repository: ThePalaceProject/mobile-drm-adeptconnector
# token: ${{ secrets.CI_GITHUB_ACCESS_TOKEN }}
# path: ./mobile-drm-adeptconnector
# - name: Uncompress Adobe RMSDK
# run: ./scripts/setup-repo-drm.sh
# env:
# BUILD_CONTEXT: ci
- name: Build non-Carthage 3rd party dependencies
run: ./scripts/build-3rd-party-dependencies.sh --no-private
env:
BUILD_CONTEXT: ci
- name: Build Palace without DRM support
run: ./scripts/xcode-build-nodrm.sh
env:
BUILD_CONTEXT: ci
- name: Run Palace unit tests
run: ./scripts/xcode-test.sh
env:
BUILD_CONTEXT: ci