Skip to content

Commit

Permalink
clean up ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 committed Nov 20, 2024
1 parent 7f3ce4e commit 694596c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ jobs:

- name: Check and get dependencies
run: |
go mod tidy
make tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
- name: Install golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${GOLANGCI_LINT_VERSION}
- name: Run golangci-lint ${{ env.GOLANGCI_LINT_VERSION }}
uses: golangci/golangci-lint-action@v6
with:
args: --verbose
version: ${{ env.GOLANGCI_LINT_VERSION }}

- name: Make
run: |
make
git diff --exit-code
- run: make test

- run: make install
3 changes: 3 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
linters:
enable:
- gofmt

0 comments on commit 694596c

Please sign in to comment.