mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-18 21:51:47 +00:00
Merge pull request #2 from norwd/norwd-patch-1
Separate windows step from *nix runners
This commit is contained in:
commit
eba019b497
1 changed files with 12 additions and 3 deletions
15
.github/workflows/selftest.yml
vendored
15
.github/workflows/selftest.yml
vendored
|
|
@ -10,6 +10,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: ['ubuntu', 'macos', 'windows']
|
os: ['ubuntu', 'macos', 'windows']
|
||||||
|
|
||||||
|
name: on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}-latest
|
runs-on: ${{ matrix.os }}-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
|
@ -24,16 +25,24 @@ jobs:
|
||||||
- name: Install gotestfmt
|
- name: Install gotestfmt
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GH_TOKEN }}
|
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Run gotestfmt
|
- name: Run gotestfmt
|
||||||
|
if: matrix.os != 'windows'
|
||||||
working-directory: testdata
|
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 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 gotest.${{ matrix.os }}.log | gotestfmt
|
||||||
|
|
||||||
- name: Upload test log
|
- name: Upload test log
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: test-log-${{ matrix.os }}
|
name: test-log-${{ matrix.os }}
|
||||||
path: /tmp/gotest.${{ matrix.os }}.log
|
path: testdata/gotest.${{ matrix.os }}.log
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue