-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 1.06 KB
/
test.yml
File metadata and controls
34 lines (31 loc) · 1.06 KB
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
name: Go test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
cache: true
- name: lint
uses: golangci/golangci-lint-action@v9
- run: go mod tidy
- run: go get .
- name: Build
run: go build -v ./...
- name: Test
run: |
go test -v -cover ./... -coverprofile=cover.out
go test -tags wasmer -v -cover ./... -coverprofile=cover.out.wasmer
go test -tags wasmtime -v -cover ./... -coverprofile=cover.out.wasmtime
go test -tags docker -v -cover ./... -coverprofile=cover.out.docker
go test -tags wazero -v -cover ./... -coverprofile=cover.out.wazero
tail -q -n +2 cover.out.* >> cover.out
- name: Report
run: |
go get github.com/johejo/go-cover-view
go install github.com/johejo/go-cover-view
go-cover-view -output markdown -report cover.out >> $GITHUB_STEP_SUMMARY