-
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.6 KB
/
test.yml
File metadata and controls
62 lines (53 loc) · 1.6 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
env:
SCHEME: WolfWave
PROJECT: apps/native/wolfwave.xcodeproj
jobs:
test:
name: Build & Test
runs-on: macos-26
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- name: Detect native changes
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
native:
- 'apps/native/**'
- 'Makefile'
- name: Skip notice (docs/marketing only)
if: steps.filter.outputs.native != 'true'
run: echo "No native changes detected — skipping Swift build & test."
- name: Create Config.xcconfig
if: steps.filter.outputs.native == 'true'
run: |
printf 'TWITCH_CLIENT_ID = placeholder\nDISCORD_CLIENT_ID = placeholder\n' \
> apps/native/wolfwave/Config.xcconfig
- name: Build & Test
if: steps.filter.outputs.native == 'true'
run: |
xcodebuild -project "$PROJECT" -scheme "$SCHEME" \
-destination 'platform=macOS' \
ARCHS="arm64" \
-configuration Debug test \
CODE_SIGN_IDENTITY="-" \
CODE_SIGNING_REQUIRED=NO \
CODE_SIGNING_ALLOWED=NO \
-resultBundlePath TestResults.xcresult
- name: Upload Test Results
if: always() && steps.filter.outputs.native == 'true'
uses: actions/upload-artifact@v7
with:
name: TestResults
path: TestResults.xcresult