Skip to content

Commit

Permalink
ci: Improve build workflow, include linting.
Browse files Browse the repository at this point in the history
- Adds a linting step to the build workflow to check for code quality.
  • Loading branch information
nerdeveloper committed Aug 29, 2023
1 parent be3327c commit 34603da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ jobs:
go-version: '1.20'
- name: download dependencies
run: make bootstrap
- name: run unit tests
run: make test

- name: lint
uses: golangci/[email protected]
with:
version: latest

- name: run unit tests
run: make test



- name: build binary
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ jobs:
go-version: '1.20'
- name: download dependencies
run: make bootstrap
- name: run unit tests
run: make test

- name: lint
uses: golangci/[email protected]
with:
version: latest

- name: run unit tests
run: make test



- name: build binaries
run: make build-cross
Expand Down

0 comments on commit 34603da

Please sign in to comment.