Add option to create config for rhc-worker-bash #218
Workflow file for this run
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_coverage | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
tests: | |
name: "Tests + coverage" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: ['1.20'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Go build (source) | |
run: make | |
- name: Go build (tests) | |
run: | | |
make test-container KEEP_TEST_CONTAINER=1 | |
podman cp go-test-container:/app/coverage.out . | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ./coverage.out | |
flags: go-${{ matrix.go-version }} | |
name: coverage-go-${{ matrix.go-version }} | |
fail_ci_if_error: true | |
verbose: true |