File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 22
22
- name : Set up Go
23
23
uses : actions/setup-go@v3
24
24
with :
25
- go-version : 1.17
25
+ go-version : ' 1.20 '
26
26
- name : Cache Go modules
27
27
uses : actions/cache@v3
28
28
with :
Original file line number Diff line number Diff line change 12
12
- uses : actions/checkout@v3.3.0
13
13
- uses : actions/setup-go@v3
14
14
with :
15
- go-version : ' 1.17 '
15
+ go-version : ' 1.20 '
16
16
- name : golangci-lint
17
17
uses : golangci/golangci-lint-action@v3
18
18
with :
19
- version : v1.29
19
+ version : v1.51.2
Original file line number Diff line number Diff line change 20
20
- name : Set up Go
21
21
uses : actions/setup-go@v3
22
22
with :
23
- go-version : 1.17
23
+ go-version : ' 1.20 '
24
24
- name : Cache Go modules
25
25
uses : actions/cache@v3
26
26
with :
Original file line number Diff line number Diff line change 4
4
# Build / CI artifacts
5
5
/ci-result-to-slack
6
6
coverage.out
7
+ /dist
Original file line number Diff line number Diff line change 2
2
3
3
ORG_AND_REPO =salesforce/ci-results-to-slack
4
4
MOUNT_DIR =/go/src/github.com/${ORG_AND_REPO}
5
- BUILD_CONTAINER =golang:1.17 -bullseye
5
+ BUILD_CONTAINER =golang:1.20 -bullseye
6
6
BINARY_NAME =ci-result-to-slack
7
7
ci : build test
8
8
@@ -23,11 +23,12 @@ lint:
23
23
24
24
clean :
25
25
@echo " Cleaning..."
26
- rm -rf . $(BINARY_NAME )
26
+ rm -rf $(BINARY_NAME )
27
27
rm -rf coverage.out
28
28
29
29
local-docker-test : # # Build and run unit tests in docker container like CI without building the container
30
30
docker run --rm=true -v ` pwd` :$(MOUNT_DIR ) $(BUILD_CONTAINER ) bash -c ' cd $(MOUNT_DIR) && make ci'
31
31
32
32
local-docker-build : # # Build the container image
33
+ docker run --rm=true -v ` pwd` :$(MOUNT_DIR ) $(BUILD_CONTAINER ) bash -c ' cd $(MOUNT_DIR) && make build'
33
34
docker build --no-cache -t $(ORG_AND_REPO ) .
Original file line number Diff line number Diff line change 1
1
module github.com/salesforce/ci-result-to-slack
2
2
3
- go 1.17
3
+ go 1.20
4
4
5
5
require (
6
6
github.com/kelseyhightower/envconfig v1.4.0
You can’t perform that action at this time.
0 commit comments