Skip to content

Commit

Permalink
Merge pull request #2 from norwd/norwd-patch-1
Browse files Browse the repository at this point in the history
Separate windows step from *nix runners
  • Loading branch information
norwd authored Oct 30, 2022
2 parents 29de9b4 + d8476f1 commit eba019b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/selftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
matrix:
os: ['ubuntu', 'macos', 'windows']

name: on ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
steps:

Expand All @@ -24,16 +25,24 @@ 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 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
uses: actions/upload-artifact@v3
if: always()
with:
name: test-log-${{ matrix.os }}
path: /tmp/gotest.${{ matrix.os }}.log
path: testdata/gotest.${{ matrix.os }}.log
if-no-files-found: error

0 comments on commit eba019b

Please sign in to comment.