Skip to content

Commit b1b2ad6

Browse files
authored
Merge pull request #78 from mattpolzin/test-grid
Test grid
2 parents b5217e2 + 9d61313 commit b1b2ad6

File tree

2 files changed

+35
-28
lines changed

2 files changed

+35
-28
lines changed

.github/workflows/codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on: [pull_request]
55
jobs:
66
codecov:
77
container:
8-
image: swift:5.2-bionic
8+
image: swift:5.2
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v1
11+
- uses: actions/checkout@v2
1212
- run: swift test --enable-test-discovery --enable-code-coverage
1313
- uses: mattpolzin/[email protected]
1414
with:

.github/workflows/tests.yml

Lines changed: 33 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,40 @@
11
name: Tests
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
48

59
jobs:
6-
xenial_5_1:
7-
container:
8-
image: swift:5.1-xenial
10+
linux:
911
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
image:
16+
- swift:5.1-xenial
17+
- swift:5.1-bionic
18+
- swift:5.2-xenial
19+
- swift:5.2-bionic
20+
- swiftlang/swift:nightly-master-focal
21+
- swiftlang/swift:nightly-master-centos8
22+
- swiftlang/swift:nightly-master-amazonlinux2
23+
container: ${{ matrix.image }}
1024
steps:
11-
- uses: actions/checkout@v1
12-
- run: swift test --enable-test-discovery
13-
bionic_5_1:
14-
container:
15-
image: swift:5.1-bionic
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v1
19-
- run: swift test --enable-test-discovery
20-
xenial_5_2:
21-
container:
22-
image: swift:5.2-xenial
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v1
26-
- run: swift test --enable-test-discovery
27-
bionic_5_2:
28-
container:
29-
image: swift:5.2-bionic
30-
runs-on: ubuntu-latest
25+
- name: Install dependencies if needed
26+
run: ${{ matrix.depscmd }}
27+
- name: Checkout code
28+
uses: actions/checkout@v2
29+
- name: Run tests
30+
run: swift test --enable-test-discovery
31+
osx:
32+
runs-on: macOS-latest
3133
steps:
32-
- uses: actions/checkout@v1
33-
- run: swift test --enable-test-discovery
34+
- name: Select latest available Xcode
35+
uses: maxim-lobanov/[email protected]
36+
with: { 'xcode-version': 'latest' }
37+
- name: Checkout code
38+
uses: actions/checkout@v2
39+
- name: Run tests
40+
run: swift test --enable-test-discovery

0 commit comments

Comments
 (0)