Rewrite all tests with table driven approach #255
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.16', '1.20'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Run unit tests | |
run: | | |
make test-container KEEP_TEST_CONTAINER=1 GO_VERSION=${{ matrix.go-version }} | |
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 |