-
-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (46 loc) · 977 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
44
45
46
47
name: test
on:
push:
branches:
- "**"
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: setup go
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: lint
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
- name: vet
run: |
go vet ./...
- name: test
run: |
make test
docker-build-test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Build container image
uses: docker/build-push-action@v5
with:
push: false
tags: ${{ steps.meta.outputs.tags }}