Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
BUG:set golang ci working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
developerasun committed Nov 26, 2022
1 parent 3b62645 commit c2719b5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/lint-and-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,16 @@ jobs:
with:
go-version: ${{ matrix.go }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50 # specifiy without patch version.

- name: install
- name: install formatter
run: go install github.com/segmentio/golines@latest

- name: format
run: golines -w .

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50 # specifiy without patch version.
working-directory: |
- "core"
- "config"

0 comments on commit c2719b5

Please sign in to comment.