aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/go.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.github/workflows/go.yml26
1 files changed, 24 insertions, 2 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 9c644e1..9c46b19 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -23,8 +23,8 @@ jobs:
go-version: 1.21.x
cache: true
- - name: Lint
- run: make lint
+ - name: Build
+ run: make build
- name: Test
run: make cover
@@ -32,6 +32,28 @@ jobs:
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3
+ lint:
+ name: Lint
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ name: Check out repository
+ - uses: actions/setup-go@v4
+ name: Set up Go
+ with:
+ go-version: 1.21.x
+ cache: false # managed by golangci-lint
+
+ - uses: golangci/golangci-lint-action@v3
+ name: Install golangci-lint
+ with:
+ version: latest
+ args: --version # make lint will run the linter
+
+ - run: make lint
+ name: Lint
+
docker:
runs-on: ubuntu-latest
steps: