diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 916d09b..031dc06 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -19,7 +19,7 @@ jobs: with: config-file: release-please-config.json manifest-file: .release-please-manifest.json - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.RELEASE_PLEASE_TOKEN != '' && secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }} outputs: release_created: ${{ steps.release.outputs.release_created }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e5ed50..74919d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,8 +50,13 @@ jobs: run: go build ./... - name: Run tests with race detector and shuffle + if: runner.os != 'Windows' run: go test -race -shuffle=on -count=1 -coverprofile=coverage.out -covermode=atomic ./... + - name: Run tests with shuffle + if: runner.os == 'Windows' + run: go test -shuffle=on -count=1 -coverprofile=coverage.out -covermode=atomic ./... + - name: Upload coverage if: matrix.os == 'ubuntu-latest' && matrix.go == 'stable' uses: codecov/codecov-action@v5 diff --git a/.golangci.yml b/.golangci.yml index 8228e46..aa78220 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,14 +1,7 @@ -version: "2" - run: timeout: 5m tests: true -formatters: - enable: - - gofmt - - goimports - linters: enable: - errcheck