-
-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (40 loc) · 888 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 .