-
Notifications
You must be signed in to change notification settings - Fork 19
43 lines (41 loc) · 952 Bytes
/
test.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
name: test
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
paths-ignore:
- 'docs/**'
- 'config/**'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.22
uses: actions/[email protected]
with:
go-version: "1.22"
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Restore cache
uses: actions/[email protected]
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Dependencies
run: make dependencies
- name: Build
run: make build
- name: Test
run: make test
- name: Lint-fix
run: make lint-fix
- name: Lint
run: make lint