-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (52 loc) · 1.22 KB
/
ci.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
name: CI
on:
push:
branches:
- master
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Golang Environment
uses: actions/setup-go@v5
with:
go-version: stable
- name: Build
run: go build -v ./...
test:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
go-version: [
oldstable,
stable,
]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Golang Environment
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Run Unit Tests
run: go test -v -cover -race -shuffle=on ./...
draft-release:
runs-on: ubuntu-24.04
if: github.event_name != 'pull_request'
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Create/Update Draft Release
uses: lucacome/[email protected]
with:
minor-label: "enhancement"
major-label: "change"
collapse-after: 20