Merge pull request #10 from utgwkk/dependabot/go_modules/github.com/g… #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- name: Install test dependencies | |
run: go install github.com/mfridman/tparse@latest | |
- name: Test | |
run: | | |
set -o pipefail | |
go test ./... -json | tee ./go-test.out | tparse -all | |
- name: Add job summary | |
if: always() | |
run: | | |
tparse -file ./go-test.out -format markdown >> $GITHUB_STEP_SUMMARY |