-
Notifications
You must be signed in to change notification settings - Fork 15
49 lines (40 loc) · 897 Bytes
/
unit.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
43
44
45
46
47
48
49
name: Unit Tests
on:
push:
branches: [ "main" ]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build-and-test-macos-13:
runs-on: macos-13
strategy:
matrix:
swift: ['5.7', '5.8', '5.9']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Swift
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift }}
- name: Build and Test
run: |
swift build
swift test
build-and-test-macos-14:
runs-on: macos-14
strategy:
matrix:
swift: ['5.10', '6.0']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Swift
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift }}
- name: Build and Test
run: |
swift build
swift test