mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-10 01:37:31 +00:00
49 lines
No EOL
1.3 KiB
YAML
49 lines
No EOL
1.3 KiB
YAML
on:
|
|
push:
|
|
pull_request:
|
|
name: Self-test
|
|
jobs:
|
|
self-test-ubuntu:
|
|
name: on Ubuntu
|
|
runs-on: ubuntu-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: ./
|
|
- name: Run gotestfmt
|
|
working-directory: testdata
|
|
run: go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
|
|
- name: Upload test log
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: test-log-ubuntu
|
|
path: /tmp/gotest.log
|
|
if-no-files-found: error
|
|
self-test-macos:
|
|
name: on MacOS
|
|
runs-on: macos-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: ./
|
|
- name: Run gotestfmt
|
|
working-directory: testdata
|
|
run: go test -json -v ./... 2>&1 | tee ./gotest.log | gotestfmt
|
|
- name: Upload test log
|
|
uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: test-log-macos
|
|
path: ./testdata/gotest.log
|
|
if-no-files-found: error |