Repository navigation
70 lines (57 loc) · 1.61 KB
/
Copy pathpr.yml
File metadata and controls
70 lines (57 loc) · 1.61 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
61
62
63
64
65
66
67
68
69
70
name: PR
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pr-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
quality:
name: Contract & Tests
runs-on: macos-26
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Validate SDLC artifact gates
run: bash ./scripts/sdlc-checks.sh
- name: Run linked repository checks
run: bash ./scripts/ci-basic-checks.sh
- name: Ensure Metal toolchain
run: xcodebuild -downloadComponent MetalToolchain
- name: Run unit tests
run: swift test
build:
name: Release-style App Build
runs-on: macos-26
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Show Xcode version
run: xcodebuild -version
- name: Ensure Metal toolchain
run: xcodebuild -downloadComponent MetalToolchain
- name: Build and verify app bundle
run: ./scripts/build-app.sh --app-only --sign=-
gate:
name: SDLC Gate
if: ${{ always() }}
needs: [quality, build]
runs-on: ubuntu-latest
steps:
- name: Require every SDLC job
env:
QUALITY_RESULT: ${{ needs.quality.result }}
BUILD_RESULT: ${{ needs.build.result }}
run: |
if [ "$QUALITY_RESULT" != "success" ] || [ "$BUILD_RESULT" != "success" ]; then
echo "Contract/tests: $QUALITY_RESULT"
echo "App build: $BUILD_RESULT"
exit 1
fi