-
-
Notifications
You must be signed in to change notification settings - Fork 2
115 lines (107 loc) · 3.61 KB
/
pr-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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: PR Tests
on:
pull_request:
jobs:
notarize-defaults-test:
runs-on: ${{ matrix.os }}
env:
term: xterm
strategy:
fail-fast: false
matrix:
os:
- macos-13
node-version:
- '20'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
- name: Package node binary
run: npm run build
- name: Sign
uses: lando/code-sign-action@v2
id: code-sign-action
with:
file: "@lando/notarize-action"
certificate-data: ${{ secrets.APPLE_CERT_DATA }}
certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }}
apple-product-id: dev.lando.notarize-action
apple-team-id: FY8GAUX282
options: --options runtime --entitlements entitlements.xml
- name: Notarize
uses: ./
id: notarize-sign-action
with:
appstore-connect-username: ${{ secrets.APPLE_NOTARY_USER }}
appstore-connect-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
appstore-connect-team-id: FY8GAUX282
primary-bundle-id: dev.lando.notarize-action
product-path: ${{ steps.code-sign-action.outputs.file }}
verbose: true
- name: "TEST: should notarize the file at input.product-path"
if: always()
run: codesign -vvvv -R="notarized" --check-notarization ${{ steps.notarize-sign-action.outputs.product-path }}
shell: bash
notarize-tool-tests:
runs-on: ${{ matrix.os }}
env:
term: xterm
strategy:
fail-fast: false
matrix:
os:
- macos-13
node-version:
- '20'
tool:
# altool is deprecated now and it throws an error if you try to use it
# - altool
- notarytool
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile
- name: Package node binary
run: npm run build
- name: Sign
uses: lando/code-sign-action@v2
id: code-sign-action
with:
file: "@lando/notarize-action"
certificate-data: ${{ secrets.APPLE_CERT_DATA }}
certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }}
apple-product-id: dev.lando.notarize-action
apple-team-id: FY8GAUX282
options: --options runtime --entitlements entitlements.xml
- name: Notarize
uses: ./
id: notarize-sign-action
with:
appstore-connect-username: ${{ secrets.APPLE_NOTARY_USER }}
appstore-connect-password: ${{ secrets.APPLE_NOTARY_PASSWORD }}
appstore-connect-team-id: FY8GAUX282
primary-bundle-id: dev.lando.notarize-action
product-path: ${{ steps.code-sign-action.outputs.file }}
tool: ${{ matrix.tool }}
verbose: true
- name: "TEST: should notarize the file at input.product-path"
if: always()
run: codesign -vvvv -R="notarized" --check-notarization ${{ steps.notarize-sign-action.outputs.product-path }}
shell: bash