Build and Test #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: "2 7 * * 1" | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
image: | |
- swift:5.5.0-focal | |
- swift:5.10-jammy | |
container: ${{ matrix.image }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- 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 | |
nextstep: | |
runs-on: macos-latest | |
steps: | |
- name: Select latest available Xcode | |
uses: maxim-lobanov/setup-xcode@v1.2.1 | |
with: | |
xcode-version: latest | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- 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 |