mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-09 09:17:29 +00:00
This should help catch errors like #4 and #8 by ensuring that gotestfmt can run on all the major OS runners for GitHub Actions. Signed-off-by: Yuri Norwood <106889957+norwd@users.noreply.github.com>
39 lines
853 B
YAML
39 lines
853 B
YAML
on:
|
|
pull_request:
|
|
|
|
name: Self-test
|
|
jobs:
|
|
|
|
self-test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ['ubuntu', 'macos', 'windows']
|
|
|
|
runs-on: ${{ matrix.os }}-latest
|
|
steps:
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install gotestfmt
|
|
uses: ./
|
|
with:
|
|
token: ${{ secrets.GH_TOKEN }}
|
|
|
|
- name: Run gotestfmt
|
|
working-directory: testdata
|
|
run: go test -json -v ./... 2>&1 | tee /tmp/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
|
|
if-no-files-found: error
|