-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (53 loc) · 1.51 KB
/
go.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build OAuth2
run: cd oauth2 && go build -v ./...
- name: Vet OAuth2
run: cd oauth2 && go vet -v ./...
- name: Test Oauth2
run: cd oauth2 && go test -v ./...
- name: Build websmtp
run: cd websmtp && go build -v ./...
- name: Vet websmtp
run: cd websmtp && go vet -v ./...
- name: Test websmtp
run: cd websmtp && go test -v ./...
- name: Vet pkg/authapi
run: cd pkg/authapi && go vet -v ./...
- name: Test pkg/authapi
run: cd pkg/authapi && go test -v ./...
- name: Vet pkg/authdb
run: cd pkg/authdb && go vet -v ./...
- name: Test pkg/authdb
run: cd pkg/authdb && go test -v ./...
- name: Vet pkg/authmw
run: cd pkg/authmw && go vet -v ./...
- name: Test pkg/authmw
run: cd pkg/authmw && go test -v ./...
- name: Vet pkg/common
run: cd pkg/common && go vet -v ./...
- name: Test pkg/common
run: cd pkg/common && go test -v ./...
- name: Vet pkg/websmtp
run: cd pkg/websmtp && go vet -v ./...
- name: Test pkg/websmtp
run: cd pkg/websmtp && go test -v ./...
static:
runs-on: ubuntu-latest
steps:
- uses: dominikh/[email protected]
with:
version: "2022.1.1"