mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
27 lines
No EOL
693 B
YAML
27 lines
No EOL
693 B
YAML
on:
|
|
push:
|
|
pull_request:
|
|
name: Self-test
|
|
jobs:
|
|
self-test:
|
|
name: Self-test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install gotestfmt
|
|
uses: haveyoudebuggedit/gotestfmt-action@main
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.16
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Run gotestfmt
|
|
working-directory: testdata
|
|
run: go test -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
|
|
- name: Upload test log
|
|
uses: actions/upload-artifact@v2
|
|
if: always()
|
|
with:
|
|
name: test-log
|
|
path: /tmp/gotest.log
|
|
if-no-files-found: error |