Skip to content

Commit 33099e0

Browse files
authored
clean up ci (#35)
* clean up ci * Update ci.yml
1 parent 7f3ce4e commit 33099e0

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ jobs:
2828
git diff --exit-code go.mod
2929
git diff --exit-code go.sum
3030
31-
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
32-
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
31+
- name: Run golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
32+
uses: golangci/golangci-lint-action@v6
33+
with:
34+
args: --verbose
35+
version: ${{ env.GOLANGCI_LINT_VERSION }}
3336

34-
- name: Make
35-
run: |
36-
make
37-
git diff --exit-code
37+
- run: make test
38+
39+
- run: make install

.golangci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
linters:
2+
enable:
3+
- gofmt

0 commit comments

Comments
 (0)