-
Notifications
You must be signed in to change notification settings - Fork 14
34 lines (32 loc) · 930 Bytes
/
test.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
name: Swift
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test-macos:
runs-on: macos-14
env:
DEVELOPER_DIR: /Applications/Xcode_15.4.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
test-linux:
runs-on: ubuntu-latest
strategy:
matrix:
swift: ["5.10"]
container: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v3
- name: Install sqlite
run: apt-get -q update && apt-get install -y libsqlite3-dev
- name: Build
run: swift build -v --enable-test-discovery
- name: Run tests
run: swift test -v --enable-test-discovery