Skip to content

Commit ab7a445

Browse files
committed
Create ci.yml
1 parent cc9f955 commit ab7a445

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- "*"
10+
11+
jobs:
12+
macos-build-and-test:
13+
name: build and test (macos)
14+
runs-on: macos-15
15+
steps:
16+
- name: Check out code
17+
uses: actions/checkout@v4
18+
19+
- name: Select Xcode
20+
run: sudo xcode-select -s /Applications/Xcode_16.0.app
21+
22+
- name: Show Swift Version
23+
run: swift --version
24+
25+
- name: Build and Test
26+
run: swift test
27+
28+
linux-build-and-test:
29+
name: build and test (linux)
30+
runs-on: ubuntu-latest
31+
container:
32+
image: swift:6.0-focal
33+
steps:
34+
- name: Check out code
35+
uses: actions/checkout@v4
36+
37+
- name: Show Swift Version
38+
run: swift --version
39+
40+
- name: Build and Test
41+
run: swift test

0 commit comments

Comments
 (0)