-
Notifications
You must be signed in to change notification settings - Fork 819
37 lines (37 loc) · 930 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
name: CI
on:
push: {}
pull_request: {}
jobs:
run:
runs-on: ${{ matrix.macos }}
name: Xcode ${{ matrix.xcode }}
strategy:
matrix:
xcode: ["14.3.1"]
include:
- xcode: "14.3.1"
macos: macos-13
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- uses: actions/checkout@master
- name: Resolve
run: swift package resolve
- name: Build
run: swift build
- name: Test
run: set -o pipefail && swift test 2>&1 | xcpretty
- name: Gen fixtures
run: scripts/gen-fixtures.sh
- name: Check fixtures
run: scripts/diff-fixtures.sh
- name: Build fixtures
run: scripts/build-fixtures.sh
run-linux:
runs-on: ubuntu-latest
name: Linux
steps:
- uses: actions/checkout@master
- name: Build and run tests
run: swift test --enable-test-discovery