ci: exclude cruft from code coverage

1. Exclude generated code.
2. Exclude generated actors, we mostly test against the latest version.
This commit is contained in:
Steven Allen 2021-08-26 12:40:12 -07:00
parent 8bcd917c12
commit 1cecf3c9cb

View File

@ -1,3 +1,18 @@
ignore:
# Auto generated
- "^.*_gen.go$"
- "^.*/mock_full.go$"
# Old actors.
- "^chain/actors/builtin/[^/]*/(message|state|v)[0-4]\\.go$" # We test the latest version only.
# Tests
- "api/test/**"
- "conformance/**"
# Generators
- "gen/**"
- "chain/actors/agen/**"
# Non-critical utilities
- "api/docgen/**"
- "api/docgen-openrpc/**"
coverage:
status:
patch: off
@ -36,7 +51,7 @@ coverage:
informational: false
paths:
- "chain"
node:
node:
target: auto
threshold: 0.5%
informational: false
@ -55,4 +70,4 @@ coverage:
informational: true
paths:
- "cli"
- "cmd"
- "cmd"