-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 718 Bytes
/
Copy pathci_golang.yml
File metadata and controls
37 lines (29 loc) · 718 Bytes
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
name: "CI Golang"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ["1.16.x"]
steps:
- uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Install dependencies
run: |
go mod download
- name: Run go vet # -tags debug because it will fail on variables like: FileMainBundleMinJS in httphandlersprod.go
run: |
go vet -tags debug .
- name: Run tests
run: |
go test -tags debug -v