Skip to content

Commit

Permalink
Merge pull request #28 from embano1/issue-27
Browse files Browse the repository at this point in the history
  • Loading branch information
embano1 committed Jul 7, 2022
2 parents 534f640 + e2da1a4 commit 51d963a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/e2e.yaml
Expand Up @@ -6,6 +6,10 @@ on:
push:
branches: ["main", "master"]

concurrency:
group: e2e-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
e2e:
name: Run E2E Tests
Expand All @@ -29,6 +33,9 @@ jobs:
- name: Setup ko
uses: imjasonh/setup-ko@v0.4 # will install latest ko version

- name: Install tparse
run: go install github.com/mfridman/tparse@latest

- name: Check out Code onto GOPATH
uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -60,9 +67,9 @@ jobs:

- name: "Run E2E Tests"
env:
TESTFLAGS: "-v -tags=e2e -count 1 -race"
TESTFLAGS: "-v -tags=e2e -count 1 -race -json"
run: |
go test ${TESTFLAGS} ./test
go test ${TESTFLAGS} ./test | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY
- name: "Debug"
if: ${{ always() }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/go-tests.yaml
Expand Up @@ -25,6 +25,9 @@ jobs:
go-version: ${{ matrix.go-version }}
id: go

- name: Install tparse
run: go install github.com/mfridman/tparse@latest

- name: Check out code
uses: actions/checkout@v3

Expand All @@ -40,8 +43,8 @@ jobs:

- name: Test
env:
GOFLAGS: "-v -race -count=1"
run: go test $COVER_OPTS ./...
GOFLAGS: "-v -race -count=1 -json"
run: go test $COVER_OPTS ./... | tparse -all -notests -format markdown >> $GITHUB_STEP_SUMMARY

- name: Verify git clean
shell: bash
Expand Down

0 comments on commit 51d963a

Please sign in to comment.