-
-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (47 loc) · 1.15 KB
/
go_test.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
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go Test Intensive
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
schedule:
- cron: '0 0 */2 * *'
workflow_dispatch:
concurrency:
group: go_test
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19.4
check-latest: true
cache-dependency-path: go.sum
cache: true
go-version-file: go.mod
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
test:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
- name: Test Short
run: go test -v -run="^Test" -short ./... -timeout 20m
test-intensive:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v4
- name: Test
run: go test -v -run="^Test" ./... -timeout 6h