From 9719fabd555dc930e9d47bcf2b66be5e943f8542 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Jan 2025 11:58:02 +0100 Subject: [PATCH 1/2] Download deps properly --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a59d963..6b6d159 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,7 @@ analyse: # Updates 3rd party packages and tools deps: - go get -u $$(go list ./... | grep -v /tmp) - go mod tidy + go mod download go install github.com/securego/gosec/v2/cmd/gosec@latest go install github.com/fzipp/gocyclo/cmd/gocyclo@latest From 7b557abddec477955ba8120e5e8a60a1872676c1 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 22 Jan 2025 12:06:57 +0100 Subject: [PATCH 2/2] Run tests on the currently active branch instead of always on master --- .github/workflows/main.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 172b8a8..1d0f615 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,8 +10,6 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - with: - ref: master - name: Setup go uses: actions/setup-go@v5 with: @@ -26,8 +24,6 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - with: - ref: master - name: Setup go uses: actions/setup-go@v5 with: