-
Notifications
You must be signed in to change notification settings - Fork 28
41 lines (41 loc) · 1.38 KB
/
ci.yaml
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
on:
push:
branches: [ "master"]
pull_request:
branches: [ "master"]
permissions:
contents: read
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: version
id: version
uses: codacy/git-version@80c816f11db8dea5e3a81025f598193015b51832 #v2.8.0
with:
prefix: "v"
minor-identifier: /feat(\([\w\d]+\))?:/
major-identifier: /^\s*BREAKING(\s+CHANGE)?:/
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22'
- name: Install gorelease
run: go install golang.org/x/exp/cmd/[email protected]
- name: verify-version
run: echo "Comparing ${{ steps.version.outputs.previous-version }} to ${{ steps.version.outputs.version }}"; gorelease -base ${{ steps.version.outputs.previous-version }} -version ${{ steps.version.outputs.version }}
Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '1.22'
- name: test
run: |
make lint
make test