-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (40 loc) · 976 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
43
44
45
46
47
48
49
50
name: Test
permissions:
contents: read
on:
- push
- pull_request
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version: ["1.22"]
arch: [ 386, amd64 ]
runs-on: ubuntu-latest
name: Test (${{matrix.arch}} go v${{ matrix.go-version }})
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: GOARCH=${{matrix.arch}} go test -v ./...
- name: Test API
run: cd api; GOARCH=${{matrix.arch}} go test -v ./...
test-alpine:
strategy:
fail-fast: false
matrix:
tag: [ "1.22-alpine3.19"]
runs-on: ubuntu-latest
name: Test alpine (${{ matrix.tag }})
container:
image: golang:${{ matrix.tag }}
steps:
- uses: actions/checkout@v4
- name: Test
run: go test -v ./...
- name: Test API
run: cd api; go test -v ./...