From 34603dac6c65d9575011ed1e85e904db9ad22e70 Mon Sep 17 00:00:00 2001 From: Obinna Odirionye Date: Tue, 29 Aug 2023 04:03:30 +0400 Subject: [PATCH] ci: Improve build workflow, include linting. - Adds a linting step to the build workflow to check for code quality. --- .github/workflows/build-pr.yml | 7 +++++-- .github/workflows/build.yml | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml index db46ef97..cc367106 100644 --- a/.github/workflows/build-pr.yml +++ b/.github/workflows/build-pr.yml @@ -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/golangci-lint-action@v3.7.0 with: version: latest + + - name: run unit tests + run: make test + - name: build binary diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b70127c0..b23f90d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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/golangci-lint-action@v3.7.0 with: version: latest + + - name: run unit tests + run: make test + + - name: build binaries run: make build-cross