File tree Expand file tree Collapse file tree 5 files changed +38
-19
lines changed Expand file tree Collapse file tree 5 files changed +38
-19
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,15 @@ concurrency:
6
6
7
7
on :
8
8
schedule :
9
+ # ┌───────────── minute (0 - 59)
10
+ # │ ┌───────────── hour (0 - 23)
11
+ # │ │ ┌───────────── day of the month (1 - 31)
12
+ # │ │ │ ┌───────────── month (1 - 12)
13
+ # │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
14
+ # │ │ │ │ │
15
+ # │ │ │ │ │
16
+ # │ │ │ │ │
17
+ # * * * * *
9
18
- cron : ' 0 12 * * 6'
10
19
push :
11
20
branches :
14
23
tags :
15
24
- ' v*'
16
25
pull_request :
26
+ # The branches below must be a subset of the branches above
27
+ branches :
28
+ - ' main'
29
+ - ' release/*'
17
30
18
31
permissions :
19
32
contents : read # to fetch code (actions/checkout)
@@ -44,12 +57,12 @@ jobs:
44
57
git checkout HEAD^2
45
58
-
46
59
name : Initialize CodeQL
47
- uses : github/codeql-action/init@v2
60
+ uses : github/codeql-action/init@v3
48
61
with :
49
62
languages : ${{ matrix.language }}
50
63
-
51
64
name : Autobuild
52
- uses : github/codeql-action/autobuild@v2
65
+ uses : github/codeql-action/autobuild@v3
53
66
-
54
67
name : Perform CodeQL Analysis
55
- uses : github/codeql-action/analyze@v2
68
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 20
20
uses : actions/checkout@v4
21
21
22
22
- name : Run FOSSA scan and upload build data
23
- uses : fossa-contrib/fossa-action@v2
23
+ uses : fossa-contrib/fossa-action@v3
24
24
with :
25
25
fossa-api-key : cac3dc8d4f2ba86142f6c0f2199a160f
Original file line number Diff line number Diff line change 17
17
build :
18
18
strategy :
19
19
matrix :
20
- go-version : [1.21.x, 1.22.x]
20
+ go-version :
21
+ - 1.21.x # oldest supported (see go.mod)
22
+ - oldstable
23
+ - stable
21
24
os : [ubuntu-latest, windows-latest, macos-latest]
22
25
runs-on : ${{ matrix.os }}
23
26
timeout-minutes : 10
@@ -34,16 +37,16 @@ jobs:
34
37
make build
35
38
36
39
- name : lint
37
- uses : golangci/golangci-lint-action@v6
40
+ uses : golangci/golangci-lint-action@v7
38
41
with :
39
- version : v1.59
42
+ version : v2.0
40
43
args : --print-resources-usage --timeout=10m --verbose
41
44
42
45
- name : Test
43
46
run : |
44
47
make coverage
45
48
46
49
- name : Codecov
47
- uses : codecov/codecov-action@v4
50
+ uses : codecov/codecov-action@v5
48
51
with :
49
52
directory : ./
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
linters :
2
3
enable :
3
4
- bodyclose
4
- - dupword # Checks for duplicate words in the source code
5
- - gofmt
6
- - goimports
7
- - ineffassign
5
+ - dupword
8
6
- misspell
9
7
- revive
10
- - staticcheck
11
8
- unconvert
12
- - unused
13
- - vet
14
9
disable :
15
10
- errcheck
16
-
17
- run :
18
- deadline : 2m
11
+ exclusions :
12
+ generated : disable
13
+ presets :
14
+ - comments
15
+ - std-error-handling
16
+ formatters :
17
+ enable :
18
+ - gofmt
19
+ - goimports
20
+ exclusions :
21
+ generated : disable
Original file line number Diff line number Diff line change 1
1
module github.com/distribution/reference
2
2
3
- go 1.20
3
+ go 1.21
4
4
5
5
require github.com/opencontainers/go-digest v1.0.0
You can’t perform that action at this time.
0 commit comments