Skip to content

Commit d623c37

Browse files
chore: change linting
1 parent 5739ab2 commit d623c37

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/ci.yaml

+10-4
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,26 @@ jobs:
1212
GO111MODULE: on
1313
steps:
1414
- uses: actions/checkout@v3
15-
- uses: actions/setup-go@v3
15+
- uses: actions/setup-go@v4
1616
with:
1717
go-version: '1.20'
1818
check-latest: true
1919

20-
- name: Get tools
20+
- name: environment
21+
run: |
22+
env | sort
23+
24+
- name: Setup tools
2125
run: |
2226
make tools
27+
2328
- name: Lint
24-
run: |
25-
./scripts/test
29+
uses: golangci/golangci-lint-action@v3
30+
2631
- name: Build sso-auth
2732
run: |
2833
make dist/sso-auth
34+
2935
- name: Build sso-proxy
3036
run: |
3137
make dist/sso-proxy

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dist/sso-proxy:
1717

1818
tools:
1919
go get golang.org/x/lint/golint
20-
go get github.com/rakyll/statik
20+
go get github.com/rakyll/statik
2121

2222
test:
2323
./scripts/test

scripts/test

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ fi
2424
echo "running go mod verify ..."
2525
go mod verify
2626

27-
echo "running golint ..."
28-
golint -set_exit_status cmd internal
29-
3027
echo "running go vet ..."
3128
go vet ./...
3229

0 commit comments

Comments
 (0)