File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -19,21 +19,20 @@ public override bool ShouldRun(BuildContext context)
19
19
20
20
public override void Run ( BuildContext context )
21
21
{
22
- var coverageFiles = context . GetFiles ( $ "{ Paths . TestOutput } /*.coverage.*.xml") ;
22
+ var coverageFiles = context
23
+ . GetFiles ( $ "{ Paths . TestOutput } /*.coverage.*.xml")
24
+ . Select ( file => context . MakeRelative ( file ) . ToString ( ) ) . ToArray ( ) ;
23
25
24
26
var token = context . Credentials ? . CodeCov ? . Token ;
25
27
if ( string . IsNullOrEmpty ( token ) )
26
28
{
27
29
throw new InvalidOperationException ( "Could not resolve CodeCov token." ) ;
28
30
}
29
31
30
- foreach ( var coverageFile in coverageFiles )
32
+ context . Codecov ( new CodecovSettings
31
33
{
32
- context . Codecov ( new CodecovSettings
33
- {
34
- Files = new [ ] { coverageFile . ToString ( ) } ,
35
- Token = token
36
- } ) ;
37
- }
34
+ Files = coverageFiles ,
35
+ Token = token
36
+ } ) ;
38
37
}
39
38
}
You can’t perform that action at this time.
0 commit comments