-
Notifications
You must be signed in to change notification settings - Fork 12
46 lines (37 loc) · 889 Bytes
/
go.yaml
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
name: Go
on:
push:
branches:
- main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go
uses: actions/[email protected]
with:
go-version-file: go.mod
check-latest: true
- name: Set up TinyGo
uses: acifani/[email protected]
with:
tinygo-version: '0.30.0'
- name: Vet Go code
run: go vet ./...
- name: Test Go code
run: go test -v -race ./...
- name: Test Go without cgo
env:
CGO_ENABLED: 0
run: go test -v ./...
- name: Test with TinyGo
run: tinygo test -v ./...
- name: Verify repo is unchanged
run: git diff --exit-code HEAD