-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 852 Bytes
/
swift.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: Swift
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
container:
image: ghcr.io/realm/swiftlint:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: SwiftLint
run: swiftlint --config .swiftlint.yml --reporter github-actions-logging --strict
test:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["6.0"]
runs-on: ${{ matrix.os }}
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Swift
uses: NeedleInAJayStack/setup-swift@feat/swift-6
with:
swift-version: ${{ matrix.swift }}
- name: Run tests
run: swift test