-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (37 loc) · 1.01 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
---
name: test
on:
workflow_call:
jobs:
check-style:
runs-on: ubuntu-latest
env:
GOFLAGS: "-buildvcs=false"
container:
image: golang:1.23.2-bookworm
steps:
- name: ci/checkout-repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ci/cache-gopath
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
key: go-mod-v1-${{ hashFiles('go.sum') }}
path: /go
if: "${{ !env.ACT }}"
- name: ci/check-code-style
run: make check-style
test:
runs-on: ubuntu-latest
container:
image: golang:1.23.2-bookworm
steps:
- name: ci/checkout-repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ci/cache-gopath
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
key: go-mod-v1-${{ hashFiles('go.sum') }}
path: /go
if: "${{ !env.ACT }}"
- name: ci/unit-test
run: make unittest