Skip to content

feat: Add OnError and OnSuccess to a Job. #193

feat: Add OnError and OnSuccess to a Job.

feat: Add OnError and OnSuccess to a Job. #193

Workflow file for this run

name: Run Tests
# Triggers the workflow on push or pull request events
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go: ["1.21"]
runs-on: ubuntu-20.04
name: Go ${{ matrix.go }} Tests
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Verify dependencies
run: go mod verify
- name: Run Test
run: go test -v ./... -covermode=count -coverprofile=coverage.out
go tool cover -func=coverage.out -o=coverage.out
- name: Verify Changed files
uses: tj-actions/[email protected]
id: verify-changed-files
with:
files: README.md