-
-
Notifications
You must be signed in to change notification settings - Fork 9
75 lines (69 loc) · 2.36 KB
/
artifacts_test.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: 'Artifacts: Test'
# This workflow will test the requested artifacts
on:
workflow_call:
inputs:
methods:
description: 'An array of test methods that need to be run. Will be read using fromJSON(). Allowed values: ["e2e", "unit-ubuntu", "unit-macos", "api"]'
required: true
type: string
secrets:
test-apple-id-user:
description: The username of the Apple ID test user, used during E2E tests
required: false
test-apple-id-pwd:
description: The password of the Apple ID test user, used during E2E tests
required: false
test-trust-token:
description: The validated trust token of the Apple ID test user
required: false
permissions: {}
jobs:
unit-ubuntu:
runs-on: ubuntu-latest
if: contains(fromJSON(inputs.methods), 'unit-ubuntu')
steps:
- name: setup/checkout
uses: actions/checkout@v4
- name: setup/test-unit
uses: ./.github/actions/test/unit-setup
- name: action/test-unit
uses: ./.github/actions/test/unit
unit-macos:
runs-on: macos-latest
if: contains(fromJSON(inputs.methods), 'unit-macos')
steps:
- name: setup/checkout
uses: actions/checkout@v4
- name: setup/test-unit
uses: ./.github/actions/test/unit-setup
- name: action/test-unit
uses: ./.github/actions/test/unit
e2e:
runs-on: ubuntu-latest
if: contains(fromJSON(inputs.methods), 'e2e')
steps:
- name: setup/checkout
uses: actions/checkout@v4
- name: setup/test-e2e
uses: ./.github/actions/test/e2e-setup
- name: action/test-e2e
uses: ./.github/actions/test/e2e
with:
test-apple-id-user: ${{ secrets.test-apple-id-user }}
test-apple-id-pwd: ${{ secrets.test-apple-id-pwd }}
test-trust-token: ${{ secrets.test-trust-token }}
api:
runs-on: ubuntu-latest
if: contains(fromJSON(inputs.methods), 'api')
steps:
- name: setup/checkout
uses: actions/checkout@v4
- name: setup/test-api
uses: ./.github/actions/test/api-setup
- name: action/test-api
uses: ./.github/actions/test/api
with:
test-apple-id-user: ${{ secrets.test-apple-id-user }}
test-apple-id-pwd: ${{ secrets.test-apple-id-pwd }}
test-trust-token: ${{ secrets.test-trust-token }}