-
Notifications
You must be signed in to change notification settings - Fork 35
37 lines (36 loc) · 908 Bytes
/
tests.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: Tests
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
Tests:
strategy:
matrix:
xcode_version: ["15.3"]
swift: ["5.9.2", "5.10.0"]
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode_version }}.app/Contents/Developer"
runs-on: macos-14
steps:
- uses: SwiftyLab/setup-swift@latest
with:
development: true
swift-version: ${{ matrix.swift }}
- name: Get swift version
run: swift --version
- uses: actions/checkout@v2
- name: Run Tests
run: |
# If default toolchain in Xcode is used, `env.TOOLCHAINS` will be empty
if [[ -n "${{ env.TOOLCHAINS }}" ]]; then
xcrun --toolchain ${{ env.TOOLCHAINS }} swift test --verbose
else
swift test --verbose
fi
env:
ENABLE_INTEGRATION_TESTS: 1
IS_CI: 1