mirror of
https://github.com/kopia/kopia.git
synced 2026-01-20 20:37:54 -05:00
30 lines
697 B
YAML
30 lines
697 B
YAML
name: Code Coverage
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [ master ]
|
|
jobs:
|
|
tests:
|
|
name: Code Coverage Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Set up Go.
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ^1.17
|
|
id: go
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Run Tests
|
|
run: make test-with-coverage
|
|
- name: Publish Coverage Results
|
|
run: make ci-publish-coverage
|
|
- name: Upload Logs
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: logs
|
|
path: .logs/**/*.log
|
|
if-no-files-found: ignore
|
|
if: ${{ always() }} |