Skip to content

Commit e4d389e

Browse files
authored
Add CI workflow (#1)
1 parent 8ba8544 commit e4d389e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
test:
15+
timeout-minutes: 5
16+
strategy:
17+
matrix:
18+
swift-version:
19+
- 6.0.3
20+
- 6.1.0
21+
22+
runs-on: macos-latest
23+
name: Test (Swift ${{ matrix.swift-version }})
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Setup Swift on macOS
29+
uses: swift-actions/setup-swift@v2
30+
with:
31+
swift-version: ${{ matrix.swift-version }}
32+
33+
- name: Build
34+
run: swift build -v
35+
36+
- name: Run tests
37+
run: swift test -v

0 commit comments

Comments
 (0)