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:
66
77on :
88 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+ # * * * * *
918 - cron : ' 0 12 * * 6'
1019 push :
1120 branches :
1423 tags :
1524 - ' v*'
1625 pull_request :
26+ # The branches below must be a subset of the branches above
27+ branches :
28+ - ' main'
29+ - ' release/*'
1730
1831permissions :
1932 contents : read # to fetch code (actions/checkout)
@@ -44,12 +57,12 @@ jobs:
4457 git checkout HEAD^2
4558 -
4659 name : Initialize CodeQL
47- uses : github/codeql-action/init@v2
60+ uses : github/codeql-action/init@v3
4861 with :
4962 languages : ${{ matrix.language }}
5063 -
5164 name : Autobuild
52- uses : github/codeql-action/autobuild@v2
65+ uses : github/codeql-action/autobuild@v3
5366 -
5467 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 2020 uses : actions/checkout@v4
2121
2222 - name : Run FOSSA scan and upload build data
23- uses : fossa-contrib/fossa-action@v2
23+ uses : fossa-contrib/fossa-action@v3
2424 with :
2525 fossa-api-key : cac3dc8d4f2ba86142f6c0f2199a160f
Original file line number Diff line number Diff line change 1717 build :
1818 strategy :
1919 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
2124 os : [ubuntu-latest, windows-latest, macos-latest]
2225 runs-on : ${{ matrix.os }}
2326 timeout-minutes : 10
@@ -34,16 +37,16 @@ jobs:
3437 make build
3538
3639 - name : lint
37- uses : golangci/golangci-lint-action@v6
40+ uses : golangci/golangci-lint-action@v7
3841 with :
39- version : v1.59
42+ version : v2.0
4043 args : --print-resources-usage --timeout=10m --verbose
4144
4245 - name : Test
4346 run : |
4447 make coverage
4548
4649 - name : Codecov
47- uses : codecov/codecov-action@v4
50+ uses : codecov/codecov-action@v5
4851 with :
4952 directory : ./
Original file line number Diff line number Diff line change 1+ version : " 2"
12linters :
23 enable :
34 - bodyclose
4- - dupword # Checks for duplicate words in the source code
5- - gofmt
6- - goimports
7- - ineffassign
5+ - dupword
86 - misspell
97 - revive
10- - staticcheck
118 - unconvert
12- - unused
13- - vet
149 disable :
1510 - 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 11module github.com/distribution/reference
22
3- go 1.20
3+ go 1.21
44
55require github.com/opencontainers/go-digest v1.0.0
You can’t perform that action at this time.
0 commit comments