-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 861 Bytes
/
Copy pathswift.yml
File metadata and controls
40 lines (38 loc) · 861 Bytes
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
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "*" ]
jobs:
mac:
name: Swift on macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
linux:
name: Swift ${{ matrix.swift }} on Linux
runs-on: ubuntu-latest
container: swiftlang/swift:nightly-${{ matrix.swift }}-jammy
strategy:
fail-fast: false
matrix:
swift: ["6.1", "6.2"]
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
format:
name: Format
runs-on: ubuntu-latest
container: swift:6.1
steps:
- uses: actions/checkout@v4
- name: Format
run: swift format lint **/*.swift -r -s