Skip to content

Commit f093dc0

Browse files
committed
Add CI with GitHub Actions
1 parent ce537e2 commit f093dc0

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/CI.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test-cloud:
7+
name: Test on Builder Environment
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
version:
12+
- nightly-master
13+
os:
14+
- centos7
15+
- amazonlinux2
16+
container:
17+
image: swiftlang/swift:${{ matrix.version }}-${{ matrix.os }}
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
- name: Test
22+
run: swift test --enable-test-discovery
23+
24+
test-linux:
25+
name: Test on Other Linux
26+
runs-on: ubuntu-latest
27+
strategy:
28+
matrix:
29+
os:
30+
- bionic
31+
- focal
32+
- amazonlinux2
33+
- centos8
34+
container:
35+
image: swift:5.2.4-${{ matrix.os }}
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
- name: Test
40+
run: swift test --enable-test-discovery
41+
42+
test-macos:
43+
name: Test on macOS
44+
runs-on: macos-latest
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v2
48+
- name: Test
49+
run: swift test

0 commit comments

Comments
 (0)