-
Notifications
You must be signed in to change notification settings - Fork 3
51 lines (41 loc) · 861 Bytes
/
ci.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
50
51
name: CI
on:
push:
branches:
- main
paths-ignore:
- README.md
- LICENSE
pull_request:
paths-ignore:
- README.md
- LICENSE
workflow_dispatch:
permissions:
contents: read
env:
DEVELOPER_DIR: /Applications/Xcode_15.0.app
jobs:
build:
name: Build & Test
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select Xcode 15
run: sudo xcode-select -s /Applications/Xcode_15.0.app
- name: Build
run: swift build
- name: Test
run: swift test
linux-test:
name: Linux Test
runs-on: ubuntu-latest
steps:
- name: Install Swift
uses: slashmo/install-swift@v0.4.0
with:
version: swift-5.9-RELEASE
- uses: actions/checkout@v4
- name: Test
run: swift test