.github/workflows/go.yml (view raw)
1name: Go
2
3on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8 schedule:
9 - cron: "0 0 * * 1"
10jobs:
11
12 build:
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@v2
16
17 - name: Set up Go
18 uses: actions/setup-go@v2
19 with:
20 go-version: 1.15
21
22 - name: Build
23 run: go build -v ./...
24
25 - name: Test
26 run: go test -v ./...