-
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.59 KB
/
Copy pathci.yml
File metadata and controls
60 lines (49 loc) · 1.59 KB
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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: macos-26
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install SwiftLint
run: brew install swiftlint
- name: SwiftLint
run: swiftlint lint --strict
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- name: Verify bundled Proton Pass CLI
run: scripts/prepare-bundled-pass-cli.sh "$RUNNER_TEMP/bundled-pass-cli"
- name: Cache DerivedData
uses: actions/cache@v5
with:
path: build/
key: derived_data-v2-${{ runner.os }}-xcode26.2-${{ hashFiles('Quick Access for Pass.xcodeproj/**') }}
restore-keys: |
derived_data-v2-${{ runner.os }}-xcode26.2-
- name: Build
run: |
xcodebuild build -scheme "Quick Access for Pass" -derivedDataPath build/ \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
AD_HOC_CODE_SIGNING_ALLOWED=YES \
CODE_SIGN_ENTITLEMENTS= \
ENABLE_HARDENED_RUNTIME=NO
- name: Run tests
env:
TEST_RUNNER_CI: "true"
run: |
xcodebuild test -scheme "Quick Access for Pass" -derivedDataPath build/ \
-parallel-testing-enabled NO \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
AD_HOC_CODE_SIGNING_ALLOWED=YES \
CODE_SIGN_ENTITLEMENTS= \
ENABLE_HARDENED_RUNTIME=NO