Skip to content

Commit

Permalink
Merge pull request #78 from mattpolzin/test-grid
Browse files Browse the repository at this point in the history
Test grid
  • Loading branch information
mattpolzin authored May 25, 2020
2 parents b5217e2 + 9d61313 commit b1b2ad6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on: [pull_request]
jobs:
codecov:
container:
image: swift:5.2-bionic
image: swift:5.2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- run: swift test --enable-test-discovery --enable-code-coverage
- uses: mattpolzin/[email protected]
with:
Expand Down
59 changes: 33 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
name: Tests

on: [pull_request]
on:
pull_request:
push:
branches:
- master

jobs:
xenial_5_1:
container:
image: swift:5.1-xenial
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.1-xenial
- swift:5.1-bionic
- swift:5.2-xenial
- swift:5.2-bionic
- swiftlang/swift:nightly-master-focal
- swiftlang/swift:nightly-master-centos8
- swiftlang/swift:nightly-master-amazonlinux2
container: ${{ matrix.image }}
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery
bionic_5_1:
container:
image: swift:5.1-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery
xenial_5_2:
container:
image: swift:5.2-xenial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery
bionic_5_2:
container:
image: swift:5.2-bionic
runs-on: ubuntu-latest
- name: Install dependencies if needed
run: ${{ matrix.depscmd }}
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: swift test --enable-test-discovery
osx:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- run: swift test --enable-test-discovery
- name: Select latest available Xcode
uses: maxim-lobanov/[email protected]
with: { 'xcode-version': 'latest' }
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: swift test --enable-test-discovery

0 comments on commit b1b2ad6

Please sign in to comment.