diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93a643c..0bc28b0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,12 +38,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: actions/setup-go@v5 with: go-version-file: go.mod cache: true - name: Test - run: go test ./... + run: go test -v ./... | tee "${RUNNER_TEMP}/go-test-results.txt" + - uses: actions/upload-artifact@v4 + with: + name: go-test-results + path: "${{ env.RUNNER_TEMP }}/go-test-results.txt" build: needs: test @@ -62,6 +68,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + persist-credentials: false fetch-depth: 0 fetch-tags: true - uses: actions/setup-go@v5 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f90e361..7790057 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -33,12 +33,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: actions/setup-go@v5 with: go-version: '>=1.18' cache: true - name: Test - run: go test ./... + run: go test -v ./... build: needs: test @@ -56,6 +58,8 @@ jobs: steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: actions/setup-go@v5 with: go-version: '>=1.18'