Add CI workflow

This commit is contained in:
siemensikkema 2021-11-17 14:35:28 +01:00
parent d96b50d65f
commit 24612f7e38
1 changed files with 34 additions and 0 deletions

34
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
container:
- 'swift:5.5-focal'
container: ${{ matrix.container }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run tests
run: swift test --sanitize=thread
macos:
runs-on: macos-11
strategy:
matrix:
xcode:
- '13.1'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Select Xcode ${{ matrix.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: Run tests
run: swift test --sanitize=thread