Skip to content

Commit ea7cb41

Browse files
Add GH actions configuration
1 parent 8c8b68c commit ea7cb41

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
name: Build and test
12+
runs-on: macos-15
13+
env:
14+
XCODE_VERSION: ${{ '16.4' }}
15+
steps:
16+
- name: Select Xcode
17+
run: "sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app"
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
- name: Build project
21+
run: swift build
22+
- name: Run tests
23+
run: swift test
24+
- name: Build example iOS app
25+
run: |
26+
cd Example
27+
bazel build //HelloWorld
28+
- name: Test example iOS app
29+
run: |
30+
cd Example
31+
bazel test //HelloWorld/HelloWorldTests/...

0 commit comments

Comments
 (0)