Merge pull request #31 from brokenhandsio/swift-format #36
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: Vapor OAuth | |
on: | |
push: | |
branches: [ "main" ] | |
tags: | |
- '*' | |
pull_request: | |
branches: '*' | |
jobs: | |
ubuntu_test: | |
name: Ubuntu Build & Test | |
runs-on: ubuntu-22.04 | |
container: swift:6.0-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test | |
macos_test: | |
name: macOS Build & Test | |
runs-on: macos-15 | |
steps: | |
- name: Select appropriate Xcode version | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest-stable | |
- uses: actions/checkout@v4 | |
- name: Build | |
run: swift build -v | |
- name: Run tests | |
run: swift test | |
format: | |
name: Lint Formatting | |
runs-on: ubuntu-22.04 | |
container: swift:6.0-jammy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Lint | |
run: swift format lint --strict --recursive . |