File tree Expand file tree Collapse file tree 4 files changed +63
-46
lines changed Expand file tree Collapse file tree 4 files changed +63
-46
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2
+ # This workflow will build a golang project
3
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
4
+
5
+ name : Go
6
+
7
+ on :
8
+ workflow_call :
9
+ push :
10
+ branches : [ "master" ]
11
+ pull_request :
12
+ branches : [ "master" ]
13
+
14
+ jobs :
15
+ go :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v4
22
+ with :
23
+ go-version-file : " go.mod"
24
+ check-latest : true
25
+ cache : true
26
+
27
+ - name : Build
28
+ run : go build .
29
+ - name : Test
30
+ run : go test -race -cover -v ./...
31
+
32
+ - name : Golangci-lint
33
+ uses : golangci/golangci-lint-action@v6
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://json.schemastore.org/github-workflow
2
+ name : Release
3
+
4
+ on :
5
+ push :
6
+ tags :
7
+ - ' v*'
8
+
9
+ jobs :
10
+ go :
11
+ name : Go
12
+ uses : ./.github/workflows/go.yaml
13
+ secrets : inherit
14
+
15
+ changelog :
16
+ runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : write
19
+ name : Changelog
20
+ needs : [ "go", "build" ]
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Release
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ run : |
29
+ gh release create --generate-notes --verify-tag "${GITHUB_REF#refs/*/}"
Original file line number Diff line number Diff line change
1
+ yagostatus
You can’t perform that action at this time.
0 commit comments