mirror of
https://github.com/vee1e/gittuf.git
synced 2026-09-03 03:07:10 +00:00
29 lines
781 B
YAML
29 lines
781 B
YAML
name: coverage
|
|
on:
|
|
push:
|
|
branches: ['main']
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "**.md"
|
|
pull_request:
|
|
paths-ignore:
|
|
- "docs/**"
|
|
- "**.md"
|
|
permissions: read-all
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
- name: Install Go
|
|
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34
|
|
with:
|
|
go-version: 1.24
|
|
cache: true
|
|
- name: Check Coverage
|
|
run: go test -covermode=atomic -coverprofile='coverage.cov' `go list ./... | grep -v -f .test_ignore.txt`
|
|
- name: Coveralls Parallel
|
|
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b
|
|
with:
|
|
file: 'coverage.cov'
|