mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
add github action for golangci
This commit is contained in:
parent
d6e0ad0f93
commit
9f2d0f0dbc
2 changed files with 21 additions and 7 deletions
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
|
|
@ -24,13 +24,6 @@ jobs:
|
|||
key: ${{ runner.os }}-go-${{ hashFiles('go.sum') }}
|
||||
restore-keys: ${{ runner.os }}-go-
|
||||
|
||||
- name: Run go fmt
|
||||
if: runner.os != 'Windows'
|
||||
run: diff -u <(echo -n) <(gofmt -d -s .)
|
||||
|
||||
- name: Run go vet
|
||||
run: go vet ./...
|
||||
|
||||
- name: Run go test
|
||||
run: go test -v -race -coverprofile coverage.txt -covermode atomic ./...
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue