Skip to content

Commit 4e6554d

Browse files
committed
add ci
1 parent 88e39a7 commit 4e6554d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'Sources/**'
9+
- 'Package.swift'
10+
- '.github/workflows/test.yml'
11+
push:
12+
branches:
13+
- main
14+
paths:
15+
- 'Sources/**'
16+
- 'Package.swift'
17+
- '.github/workflows/test.yml'
18+
19+
jobs:
20+
build-and-test:
21+
runs-on: macos-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
26+
- name: Set up Swift
27+
uses: swift-actions/setup-swift@v2
28+
with:
29+
swift-version: '6.0'
30+
31+
- name: Build
32+
run: swift build --build-tests
33+
34+
- name: Run tests
35+
run: swift test

0 commit comments

Comments
 (0)