fix: maybe discard crob job if execute job delay #11
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
# Copy from https://github.com/spf13/cobra | |
# https://github.com/spf13/cobra/blob/master/LICENSE.txt | |
name: Test | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
env: | |
GO111MODULE: on | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: stable | |
stable: true | |
- name: Build | |
run: make build | |
- name: Test | |
run: make test | |
- name: Update coverage report | |
uses: ncruces/go-coverage-report@v0 | |
with: | |
report: 'true' | |
chart: 'true' | |
amend: 'false' | |
if: | | |
matrix.os == 'ubuntu-latest' && | |
github.event_name == 'push' | |
continue-on-error: true |