Files
kopia/.github/workflows/code-coverage.yml
Jarek Kowalski f69424961f chore(ci): upgrade golang to 1.19.2 and linter to 1.50.1 (#2526)
Lack of generics support is blocking various dependency upgrades,
so this unblocks that.

Temporarily disabled `checklocks` linter until it is fixed upstream.
2022-10-28 11:02:47 -07:00

35 lines
822 B
YAML

name: Code Coverage
on:
pull_request:
push:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Code Coverage Tests
runs-on: ubuntu-latest
steps:
- name: Set up Go.
uses: actions/setup-go@v3
with:
go-version: '1.19'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Tests
run: make test-with-coverage
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
files: coverage.txt
- name: Upload Logs
uses: actions/upload-artifact@v3
with:
name: logs
path: .logs/**/*.log
if-no-files-found: ignore
if: ${{ always() }}