-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (51 loc) · 1.25 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Test
on:
push:
branches: [ "main" ]
pull_request:
jobs:
go-test:
name: Go Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
# We run the tests 20 times because sometimes it helps highlight flaky
# behaviors that do not trigger on a single pass.
- name: Go Tests
run: make test count=20
golangci-lint:
name: Go Lint
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- run: go mod download
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54.0
args: --timeout 5m --issues-exit-code 0 # warn only
wasi-test:
name: WASI Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: WASI Tests
run: make wasi-testsuite