Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynne committed Jul 5, 2023
1 parent d580fae commit cfed59e
Showing 1 changed file with 12 additions and 60 deletions.
72 changes: 12 additions & 60 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,14 @@
name: test
on:
pull_request:
push:
branches:
- main

defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request: { types: [opened, reopened, synchronize, ready_for_review] }
push: { branches: [ main ] }

jobs:
linux:
strategy:
fail-fast: false
matrix:
runner:
# 5.2 Stable
- swift:5.2-xenial
- swift:5.2-bionic
- swift:5.2-focal
- swift:5.2-centos7
- swift:5.2-centos8
- swift:5.2-amazonlinux2
# 5.2 Unstable
- swiftlang/swift:nightly-5.2-xenial
- swiftlang/swift:nightly-5.2-bionic
# 5.3 Unstable
- swiftlang/swift:nightly-5.3-xenial
- swiftlang/swift:nightly-5.3-bionic
- swiftlang/swift:nightly-5.3-focal
- swiftlang/swift:nightly-5.3-centos7
- swiftlang/swift:nightly-5.3-centos8
- swiftlang/swift:nightly-5.3-amazonlinux2
# Main Unsable
- swiftlang/swift:nightly-master-xenial
- swiftlang/swift:nightly-master-bionic
- swiftlang/swift:nightly-master-focal
- swiftlang/swift:nightly-master-centos7
- swiftlang/swift:nightly-master-centos8
- swiftlang/swift:nightly-master-amazonlinux2
container: ${{ matrix.runner }}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run tests with Thread Sanitizer
run: swift test --enable-test-discovery --sanitize=thread
env:
LOG_LEVEL: debug
macOS:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@1.0
with:
xcode-version: latest
- name: Check out code
uses: actions/checkout@v2
- name: Run tests with Thread Sanitizer
run: swift test --enable-test-discovery --sanitize=thread
env:
LOG_LEVEL: debug
unit-tests:
uses: vapor/ci/.github/workflows/run-unit-tests.yml@reusable-workflows
with:
with_coverage: true
with_tsan: true

0 comments on commit cfed59e

Please sign in to comment.