File tree 7 files changed +81
-17
lines changed
7 files changed +81
-17
lines changed Original file line number Diff line number Diff line change 3
3
name : CI
4
4
on :
5
5
pull_request :
6
- push :
7
- branches :
8
- - main
9
6
jobs :
10
7
ok :
11
8
if : failure()
12
- runs-on : ubuntu-latest
9
+ runs-on : ubuntu-24.04
13
10
needs :
14
- - test
15
- - lint
11
+ - test-lint
16
12
steps :
17
13
- run : exit 1
18
- test :
14
+ test-lint :
15
+ name : test and lint
19
16
strategy :
20
17
matrix :
21
18
go_version :
22
19
- stable
23
20
- oldstable
24
- runs-on : ubuntu-latest
21
+ runs-on : ubuntu-24.04
22
+ permissions :
23
+ actions : read
24
+ contents : read
25
+ pull-requests : write
25
26
steps :
26
27
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27
28
- uses : actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
29
+ id : setup-go
28
30
with :
29
31
go-version : ${{ matrix.go_version }}
30
32
cache : true
@@ -33,12 +35,28 @@ jobs:
33
35
go test -v -race -coverprofile=cover.out ./...
34
36
- uses : k1LoW/octocov-action@1ad702b3118b6a055c00b01db68ca0d9f6641dbc # v1.4.0
35
37
if : ${{ matrix.go_version == 'stable' }}
36
- lint :
37
- runs-on : ubuntu-latest
38
- steps :
39
- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
40
- - name : lint
41
- uses : reviewdog/action-golangci-lint@dd3fda91790ca90e75049e5c767509dc0ec7d99b # v2.7.0
38
+ - uses : aquaproj/aqua-installer@e2d0136abcf70b7a2f6f505720640750557c4b33 # v3.1.1
42
39
with :
43
- fail_level : warning
44
- filter_mode : nofilter
40
+ aqua_version : v2.43.3
41
+ - run : aqua install
42
+ - name : golangci-lint
43
+ env :
44
+ _go_version : ${{ steps.setup-go.outputs.go-version }}
45
+ run : |
46
+ golangci-lint run \
47
+ --go "$_go_version" \
48
+ --out-format line-number \
49
+ --issues-exit-code 0 \
50
+ --config .golangci.yml \
51
+ 1>lint-stdout.txt 2>/dev/stderr
52
+ - name : reviewdog
53
+ env :
54
+ REVIEWDOG_GITHUB_API_TOKEN : ${{ github.token }}
55
+ run : |
56
+ reviewdog \
57
+ -name golangci-lint \
58
+ -f golangci-lint \
59
+ -filter-mode nofilter \
60
+ -reporter github-pr-check \
61
+ -fail-level warning \
62
+ < lint-stdout.txt
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : release
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ jobs :
8
+ tagpr :
9
+ runs-on : ubuntu-24.04
10
+ permissions :
11
+ contents : write
12
+ pull-requests : write
13
+ steps :
14
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15
+ with :
16
+ token : ${{ secrets.TAGPR_GITHUB_PAT }}
17
+ - uses : aquaproj/aqua-installer@e2d0136abcf70b7a2f6f505720640750557c4b33 # v3.1.1
18
+ with :
19
+ aqua_version : v2.43.3
20
+ - run : aqua install
21
+ - name : run tagpr
22
+ run : tagpr
23
+ env :
24
+ GITHUB_TOKEN : ${{ secrets.TAGPR_GITHUB_PAT }}
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ linters:
26
26
- protogetter
27
27
- reassign
28
28
- staticcheck
29
- - tenv
30
29
- testableexamples
31
30
- testpackage
32
31
- thelper
33
32
- tparallel
34
33
- unused
34
+ - usetesting
35
35
linters-settings :
36
36
errcheck :
37
37
check-type-assertions : true
Original file line number Diff line number Diff line change
1
+ [tagpr]
2
+ vPrefix = true
3
+ releaseBranch = main
4
+ versionFile = version.txt
5
+ release = true
6
+ commitPrefix = "chore(tagpr): "
Original file line number Diff line number Diff line change
1
+ ---
2
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/policy.json
3
+ registries :
4
+ - type : standard
5
+ ref : semver(">= 3.0.0")
6
+ packages :
7
+ - registry : standard
Original file line number Diff line number Diff line change
1
+ ---
2
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/aqua-yaml.json
3
+ registries :
4
+ - type : standard
5
+ ref : v4.311.0 # renovate: depName=aquaproj/aqua-registry
6
+ packages :
7
+ -
name :
golangci/[email protected]
8
+ -
name :
reviewdog/[email protected]
Original file line number Diff line number Diff line change
1
+ v0.3.0
You can’t perform that action at this time.
0 commit comments