mirror of
https://github.com/coredns/coredns.git
synced 2025-11-22 11:52:17 -05:00
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](e3c560433a...81cd2dc814)
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
31 lines
836 B
YAML
31 lines
836 B
YAML
name: Go Coverage
|
|
on: [pull_request]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
name: Coverage
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install Go
|
|
uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab
|
|
with:
|
|
go-version: '1.18.0'
|
|
id: go
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
|
|
|
|
- name: Build
|
|
run: go build -v ./...
|
|
|
|
- name: Test With Coverage
|
|
run: |
|
|
for d in request core coremain plugin test; do \
|
|
( cd $d; go test -coverprofile=cover.out -covermode=atomic -race ./...; [ -f cover.out ] && cat cover.out >> ../coverage.txt ); \
|
|
done
|
|
|
|
- name: Upload coverage to Codecov
|
|
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378
|