Skip to content

Commit

Permalink
Update myCI.yml
Browse files Browse the repository at this point in the history
Add conversion and issues notifications
  • Loading branch information
Lowkh committed Jun 10, 2022
1 parent d2e1d9f commit 61f27da
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/myCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,24 @@ jobs: # job to execute?
go mod init calc # for go mod. If we use go build, it will do the same for the 3 lines.
go mod tidy
go get github.com/franela/goblin
go get github.com/tebeka/go2xunit
go test -v
go test -v | go2xunit -output tests.xml
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
if: always()
with:
files: tests.xml

- if: ${{failure()}}
uses: nashmaniac/create-issue-action@v1.1
name: Create Issue Action
with:
title: Build Failed
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: worflow-failed
body: Workflow failed for commit ${{github.sha}}


0 comments on commit 61f27da

Please sign in to comment.