-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (66 loc) · 1.44 KB
/
test.yml
File metadata and controls
67 lines (66 loc) · 1.44 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Test
on:
push:
branches:
- main
tags-ignore:
- '**'
pull_request:
branches:
- '**'
jobs:
Apple:
name: Test ${{ matrix.name }}
runs-on: macOS-26
strategy:
fail-fast: false
matrix:
include:
- name: macOS
target: build/test-macos.xcresult
- name: iOS
target: build/test-ios.xcresult
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and test
run: make ${{ matrix.target }}
shell: bash
SPM:
name: Test with SPM
runs-on: macos-26
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build and test
run: swift test
shell: bash
Snippets:
name: Run snippets
runs-on: macos-26
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run snippets
run: make run-snippets
shell: bash
Linux:
name: Test Linux
runs-on: ubuntu-latest
container:
image: swift:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install SQLite
run: apt-get update && apt-get install -y libsqlite3-dev
- name: Build and test
run: swift test
Lint:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: swift-format lint
run: make lint 2>&1 | Scripts/gh-format.swift
shell: bash