-
Notifications
You must be signed in to change notification settings - Fork 31
41 lines (41 loc) · 1.38 KB
/
ci.yaml
File metadata and controls
41 lines (41 loc) · 1.38 KB
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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/gorelease@v0.0.0-20250210185358-939b2ce775ac
- 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
with:
go-version: '1.22'
- name: test
run: |
make lint
make test