Skip to content

Commit f7da31a

Browse files
committed
Add GitHub Actions CI workflow and update menu tests
This commit adds a GitHub Actions workflow for continuous integration testing on macOS platforms and updates the menu tests to use the new API with method-based property access instead of direct property access. Also removes the comprehensive AppRunner test suite.
1 parent 888ad23 commit f7da31a

File tree

3 files changed

+208
-454
lines changed

3 files changed

+208
-454
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main, master, develop]
6+
pull_request:
7+
branches: [main, master, develop]
8+
9+
jobs:
10+
test:
11+
name: Test on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [macos-latest, macos-12]
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
with:
21+
submodules: recursive
22+
23+
- name: Setup Xcode
24+
uses: maxim-lobanov/setup-xcode@v1
25+
with:
26+
xcode-version: latest-stable
27+
28+
- name: Cache Swift packages
29+
uses: actions/cache@v3
30+
with:
31+
path: |
32+
.build
33+
~/Library/Caches/org.swift.swiftpm
34+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
35+
restore-keys: |
36+
${{ runner.os }}-spm-
37+
38+
- name: Build
39+
run: swift build
40+
41+
- name: Run tests
42+
run: swift test --parallel
43+
44+
- name: Build example
45+
run: swift build --product Example

Tests/NativeAPITests/AppRunnerTests.swift

Lines changed: 0 additions & 297 deletions
This file was deleted.

0 commit comments

Comments
 (0)