mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-09 09:17:29 +00:00
Separate windows step from *nix runners
This allows `bash` and `pwsh` syntax to be used separately to avoid having to write the test as a polyglot 😬
Also added `secrets.GITHUB_TOKEN` as a fallback in case the repo secret `secrets.GH_TOKEN` is not set up, e.g. in a fork.
Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
This commit is contained in:
parent
29de9b49ea
commit
8476589e0d
1 changed files with 10 additions and 2 deletions
12
.github/workflows/selftest.yml
vendored
12
.github/workflows/selftest.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue