Skip to content

Commit 649f5de

Browse files
authored
Merge pull request #2 from sliemeobn/ci/add-ci
add basic github actions CI
2 parents 42203e8 + 760ef0f commit 649f5de

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yaml

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+
workflow_dispatch:
9+
10+
jobs:
11+
ci:
12+
name: Build & Test
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/cache@v3
18+
with:
19+
path: .build
20+
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
21+
restore-keys: |
22+
${{ runner.os }}-spm-
23+
24+
- name: Build
25+
run: swift build --build-tests
26+
27+
- name: Run Tests
28+
run: swift test

0 commit comments

Comments
 (0)