-
Notifications
You must be signed in to change notification settings - Fork 55
42 lines (40 loc) · 931 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
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run format-check
- run: npm test
integration-test:
name: Integrate Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.9"]
include:
- os: macos-12
swift: "5.9"
- os: ubuntu-22.04
swift: "5.9"
- os: windows-latest
swift: "5.6.3"
steps:
- uses: actions/checkout@v4
- run: npm install
- run: npm run build && npm run pack-source-map
- uses: ./
with:
swift-version: ${{ matrix.swift }}
- name: Swift version
run: swift --version | grep ${{ matrix.swift }} || exit 1