Skip to content

Test on macOS and Linux and latest 2 swift versions #37

Test on macOS and Linux and latest 2 swift versions

Test on macOS and Linux and latest 2 swift versions #37

Workflow file for this run

name: test
on:
push:
branches: [ "main" ]
pull_request:
workflow_dispatch:
jobs:
test_macOS:
runs-on: macos-latest
strategy:
matrix:
xcode: [Xcode_15.4.app, Xcode_16.1.app]
steps:
- run: sudo xcode-select -s /Applications/{{ matrix.xcode }}
- uses: actions/checkout@v4
- run: swift test
- name: Build example
run: swift build
working-directory: example
test_Linux:
runs-on: ubuntu-latest
strategy:
matrix:
swift: ["5.10", "6.0"]
steps:
- uses: vapor/[email protected]
with:
toolchain: ${{ matrix.swift }}
- uses: actions/checkout@v4
- run: swift test
- name: Build example
run: swift build
working-directory: example