diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index b75981b..7a295c2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -55,11 +55,17 @@ jobs: go-version: "1.25" cache: true + - name: Install dependencies + run: go mod download + + - name: Tidy modules + run: go mod tidy + - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: version: latest - args: --timeout=5m + args: --timeout=5m ./... # Testing and coverage (runs on PRs and pushes) test: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1cf92b..575fcb4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [master] + branches: [main] pull_request: - branches: [master] + branches: [main] jobs: lint-and-test: @@ -25,11 +25,14 @@ jobs: - name: Install dependencies run: go mod download + - name: Tidy modules + run: go mod tidy + - name: Lint uses: golangci/golangci-lint-action@v6 with: version: latest - args: --timeout=5m + args: --timeout=5m ./... - name: Test run: go test -v -race -coverprofile=coverage.out ./...