Merge pull request #146 from okp4/dependabot/github_actions/actions/c… #280
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@v4 | |
- name: Setup Go environment | |
uses: actions/[email protected] | |
with: | |
go-version: "1.21" | |
- name: Test go project | |
run: | | |
make test-go | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
if: github.actor != 'dependabot[bot]' | |
with: | |
files: ./target/coverage.out | |
env_vars: OS,GOLANG | |
fail_ci_if_error: true | |
verbose: true |