File tree 5 files changed +11
-9
lines changed
5 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ jobs:
31
31
~/.cache/go-build
32
32
~/.cache/golangci-lint
33
33
.buildcache
34
- key : v1-go-with-tools-${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('tools.go') }}-${{ hashFiles('go.sum') }}
34
+ key : v1-go-with-tools-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('0- tools.go') }}-${{ hashFiles('go.sum') }}
35
35
restore-keys : |
36
- v1-go-with-tools-${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('tools.go') }}-
37
- v1-go-with-tools-${{ runner.os }}-${{ matrix.go }}-
36
+ v1-go-with-tools-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('0- tools.go') }}-
37
+ v1-go-with-tools-${{ runner.os }}-${{ env.GO_VERSION }}-
38
38
39
39
- run : scripts/test
40
40
@@ -74,10 +74,10 @@ jobs:
74
74
~/.cache/go-build
75
75
~/.cache/golangci-lint
76
76
.buildcache
77
- key : v1-go-with-tools-${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('tools.go') }}-${{ hashFiles('go.sum') }}
77
+ key : v1-go-with-tools-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('0- tools.go') }}-${{ hashFiles('go.sum') }}
78
78
restore-keys : |
79
- v1-go-with-tools-${{ runner.os }}-${{ matrix.go }}-${{ hashFiles('tools.go') }}-
80
- v1-go-with-tools-${{ runner.os }}-${{ matrix.go }}-
79
+ v1-go-with-tools-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('0- tools.go') }}-
80
+ v1-go-with-tools-${{ runner.os }}-${{ env.GO_VERSION }}-
81
81
82
82
# Add support for more platforms with QEMU (optional)
83
83
# https://github.com/docker/setup-qemu-action
Original file line number Diff line number Diff line change 1
1
//go:build generate
2
2
3
+ // NOTE: Prefix 0- in this file's name ensures that `go generate ./...` processes it first.
4
+
3
5
//go:generate mkdir -p .buildcache/bin
4
6
//go:generate -command GOINSTALL env "GOBIN=$PWD/.buildcache/bin" go install
5
7
//go:generate -command INSTALL-HADOLINT sh -c ".buildcache/bin/hadolint --version 2>/dev/null | grep -wq \"$DOLLAR{DOLLAR}{1}\" || curl -sSfL https://github.com/hadolint/hadolint/releases/download/v\"$DOLLAR{DOLLAR}{1}\"/hadolint-\"$(uname)\"-x86_64 --output ./.buildcache/bin/hadolint && chmod +x .buildcache/bin/hadolint" -sh
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
export PATH=" $PWD /.buildcache/bin:$PATH "
3
3
set -e -o pipefail
4
- go generate tools.go
4
+ go generate 0- tools.go
5
5
6
6
gotestsum -- \
7
7
-coverpkg=" $( go list ./... | paste -s -d,) " \
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
export PATH=" $PWD /.buildcache/bin:$PATH "
3
3
set -x -e -o pipefail
4
- go generate tools.go
4
+ go generate 0- tools.go
5
5
6
6
DIST_DIR=bin
7
7
TAG=$( git describe --match=' v*' --exact-match --tags)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
export PATH=" $PWD /.buildcache/bin:$PATH "
3
3
set -x -e -o pipefail
4
- go generate tools.go
4
+ go generate 0- tools.go
5
5
6
6
hadolint Dockerfile
7
7
You can’t perform that action at this time.
0 commit comments