Skip to content

Commit 224707c

Browse files
authored
Add CI workflow (#1)
* Add CI workflow * Setup Swift 6 * Set name for job
1 parent 06d5e9a commit 224707c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
test:
11+
runs-on: macos-latest
12+
13+
strategy:
14+
matrix:
15+
swift-version:
16+
- ^6
17+
18+
name: Build and Test (Swift ${{ matrix.swift-version }})
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: swift-actions/setup-swift@v2
23+
with:
24+
swift-version: ${{ matrix.swift-version }}
25+
- name: Build
26+
run: swift build -v
27+
- name: Run tests
28+
run: swift test -v

0 commit comments

Comments
 (0)