Skip to content

Merge pull request #68 from r0x0d/update-config-file #284

Merge pull request #68 from r0x0d/update-config-file

Merge pull request #68 from r0x0d/update-config-file #284

Workflow file for this run

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