Merge pull request #288 from okp4/dependabot/go_modules/github.com/ha… #675
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: Test | |
on: | |
workflow_call: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
concurrency: | |
group: test-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-go: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: "1.18.1" | |
- name: Test go project | |
run: | | |
make test-go | |
- name: Upload coverage | |
uses: codecov/codecov-action@v3 | |
if: github.actor != 'dependabot[bot]' | |
with: | |
files: ./target/coverage.txt | |
env_vars: OS,GOLANG | |
fail_ci_if_error: false | |
verbose: true |