Skip to content

Commit a1de1ca

Browse files
Merge pull request #7 from SwiftPackageIndex/add-ci
Add ci.yml
2 parents 857ddd6 + 56acd56 commit a1de1ca

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Continuous Integration
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
9+
build-release:
10+
strategy:
11+
matrix:
12+
# https://github.com/actions/virtual-environments
13+
os: [macos-12, ubuntu-20.04]
14+
runs-on: ${{ matrix.os }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
- run: swift build --disable-automatic-resolution -c release
18+
19+
run-tests:
20+
strategy:
21+
matrix:
22+
swift-version: [5.3, 5.4, 5.5, 5.6]
23+
runs-on: ubuntu-20.04
24+
steps:
25+
- uses: fwal/setup-swift@v1
26+
with:
27+
swift-version: ${{ matrix.swift-version }}
28+
- uses: actions/checkout@v2
29+
- run: swift test

0 commit comments

Comments
 (0)