File tree Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Expand file tree Collapse file tree 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
pull_request :
7
+ env :
8
+ GOLANGCI_LINT_VERSION : v1.51.2
7
9
jobs :
8
10
lint :
9
11
runs-on : ubuntu-latest
10
12
steps :
11
13
- uses : actions/checkout@v3
12
14
- uses : actions/setup-go@v3
13
15
with :
14
- go-version : 1.19 .x
16
+ go-version : 1.20 .x
15
17
- run : go version
16
18
- run : diff -u <(echo -n) <(gofmt -d .)
17
19
- name : Run golangci-lint
18
20
uses : golangci/golangci-lint-action@v3
19
21
with :
20
- version : v1.51.2
22
+ version : ${{ env.GOLANGCI_LINT_VERSION }}
21
23
args : --verbose
Original file line number Diff line number Diff line change 8
8
test :
9
9
strategy :
10
10
matrix :
11
- go-version : [1.19.x, 1. 20.x]
11
+ go-version : [1.20.x]
12
12
os : [ubuntu-latest, windows-latest]
13
13
runs-on : ${{ matrix.os }}
14
14
steps :
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export GOBIN := $(MAKEFILE_PATH)/bin
5
5
6
6
PATH := $(GOBIN ) :$(PATH )
7
7
8
+ GOLANGCI_LINT_VERSION =$(shell awk '/GOLANGCI_LINT_VERSION:/ { print $$2 }' .github/workflows/lint.yml)
9
+
8
10
.PHONY : all
9
11
all : clean format build lint test
10
12
26
28
.PHONY : lint
27
29
lint :
28
30
@echo lint
29
- @go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.2
31
+ @go install github.com/golangci/golangci-lint/cmd/golangci-lint@$( GOLANGCI_LINT_VERSION )
30
32
@$(GOBIN ) /golangci-lint run
31
33
32
34
.PHONY : format
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ The tool to import commits from private GitLab to separate repo. Can be used to
4
4
5
5
# Getting Started
6
6
7
- 1 . Download and install [ Go 1.19 ] ( https://go.dev/dl/ ) .
7
+ 1 . Download and install [ Go 1.20 ] ( https://go.dev/dl/ ) .
8
8
2 . Install the program by running the command in a shell:
9
9
``` shell
10
10
go install github.com/alexandear/import-gitlab-commits@latest
Original file line number Diff line number Diff line change 1
1
module github.com/alexandear/import-gitlab-commits
2
2
3
- go 1.19
3
+ go 1.20
4
4
5
5
require (
6
6
github.com/go-git/go-git/v5 v5.2.0
You can’t perform that action at this time.
0 commit comments