-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (45 loc) · 1.17 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
name: Test
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
go:
name: Test Go packages
runs-on: ubuntu-latest
container:
image: golang:alpine
env:
GOFLAGS: -buildvcs=false
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up test environment
run: |
apk add --no-cache bash gcc g++ openssl-dev openssl
go work init
go work use -r .
- name: Test base library
run: go test -v ./...
- name: Test FSIM
run: go test -v ./fsim/...
- name: Test sqlite
run: go test -v ./sqlite/...
- name: Test TPM
run: go test -v ./tpm/...
- name: Test examples
run: go test -v ./examples/...
tinygo:
name: Test Go packages (TinyGo)
runs-on: ubuntu-latest
container:
image: tinygo/tinygo:0.35.0
options: --user root
steps:
- name: Check out repository code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Test base library
run: tinygo test -v ./...