Skip to content

Commit

Permalink
Merge pull request #845 from synfinatic/fix-workflow
Browse files Browse the repository at this point in the history
fix build issue with go.sum
  • Loading branch information
synfinatic committed Apr 30, 2024
2 parents e2ec94d + e54a65f commit 4828e6e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Govulncheck
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/**'
- '**.go'
- go.mod
- go.sum

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: '${{ vars.GO_VERSION }}'
go-package: ./...
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,14 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: ${{ vars.GO_VERSION }}
cache: false
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v4

- name: Tests
run: make .build-tests

- name: Upload to codecov
uses: codecov/codecov-action@v4
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ precheck: test test-fmt test-tidy ## Run all tests that happen in a PR
govulncheck: ## Run govulncheck
@govulncheck ./...

# run everything but `lint` because that runs via it's own workflow
.build-tests: vet unittest test-tidy test-fmt test-homebrew govulncheck
# run everything but `lint`and govulncheck because they run seperately
.build-tests: vet unittest test-tidy test-fmt test-homebrew

$(DIST_DIR):
@if test ! -d $(DIST_DIR); then mkdir -p $(DIST_DIR) ; fi
Expand Down

0 comments on commit 4828e6e

Please sign in to comment.