mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-18 13:41:47 +00:00
added selftest for macos
This commit is contained in:
parent
eeb550eb95
commit
e110d38b81
1 changed files with 26 additions and 4 deletions
30
.github/workflows/selftest.yml
vendored
30
.github/workflows/selftest.yml
vendored
|
|
@ -3,8 +3,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
name: Self-test
|
name: Self-test
|
||||||
jobs:
|
jobs:
|
||||||
self-test:
|
self-test-ubuntu:
|
||||||
name: Self-test
|
name: on Ubuntu
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
|
|
@ -19,9 +19,31 @@ jobs:
|
||||||
working-directory: testdata
|
working-directory: testdata
|
||||||
run: go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
|
run: go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
|
||||||
- name: Upload test log
|
- name: Upload test log
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: test-log
|
name: test-log-ubuntu
|
||||||
path: /tmp/gotest.log
|
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
|
if-no-files-found: error
|
||||||
Loading…
Reference in a new issue