-
-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (49 loc) · 1.04 KB
/
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
48
49
50
name: Test
on:
push:
branches:
- "**"
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- server
- shoes-lxd-multi
- pool-agent
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Setup go
uses: actions/setup-go@v5
with:
go-version-file: ${{ matrix.target }}/go.mod
- name: lint
run: |
cd ${{ matrix.target }}
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./...
- name: go vet
run: |
cd ${{ matrix.target }}
go vet ./...
- name: go test
run: |
cd ${{ matrix.target }}
go test ./...
docker-build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: docker build
run: |
cd server
docker build .