diff --git a/.github/workflows/selftest.yml b/.github/workflows/selftest.yml index e7c2699..01e4a4e 100644 --- a/.github/workflows/selftest.yml +++ b/.github/workflows/selftest.yml @@ -24,11 +24,19 @@ jobs: - name: Install gotestfmt uses: ./ with: - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }} - name: Run gotestfmt + if: matrix.os != 'windows' working-directory: testdata - run: go test -json -v ./... 2>&1 | tee /tmp/gotest.${{ matrix.os }}.log | gotestfmt + run: | + go test -json -v ./... 2>&1 | tee /tmp/gotest.${{ matrix.os }}.log | gotestfmt + + - name: Run gotestfmt (Windows) + if: matrix.os == 'windows' + working-directory: testdata + run: | + go test -json -v ./... 2>&1 | Tee-Object /tmp/gotest.${{ matrix.os }}.log | gotestfmt - name: Upload test log uses: actions/upload-artifact@v3