-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (37 loc) · 899 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
35
36
37
38
39
40
41
42
name: Test
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.17', '1.18', '1.19']
include:
- os: ubuntu-latest
go: 1.18
- os: macos-latest
go: 1.18
- os: macos-latest
go: 1.19
steps:
- name: Check out sveltin
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
cache: true
cache-dependency-path: go.sum
- name: Install Go modules
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Run sveltin tests
run: go test -cover -race -vet=off ./...