Skip to content

Build and Test

Build and Test #280

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
schedule:
- cron: "30 9 * * 1"
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- swift:5.5.3-xenial
- swift:5.6.1-bionic
- swift:5.7.2-focal
- swift:5.8-jammy
container: ${{ matrix.image }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
- name: Run Tests
run: swift test --enable-test-discovery
nextstep:
runs-on: macos-latest
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@v1.5.1
with:
xcode-version: 13.2.1
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build Swift Debug Package
run: swift build -c debug
- name: Build Swift Release Package
run: swift build -c release
- name: Run Tests
run: swift test