You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 13, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: src/grcov.ts
+60-7Lines changed: 60 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ import * as core from '@actions/core';
5
5
import*asiofrom'@actions/io';
6
6
import*asexecfrom'@actions/exec';
7
7
import{Cargo}from'@actions-rs/core';
8
+
const{ Octokit }=require("@octokit/action");
9
+
consttc=require('@actions/tool-cache');
8
10
9
11
import*asconfigurationfrom'./configuration';
10
12
@@ -15,29 +17,80 @@ export class Grcov {
15
17
this.path=path;
16
18
}
17
19
18
-
publicstaticasyncget(): Promise<Grcov>{
20
+
staticasyncinstall(): Promise<void>{
19
21
try{
20
-
constpath=awaitio.which('grcov',true);
21
-
22
-
returnnewGrcov(path);
22
+
core.startGroup('Install grcov (from releases)');
23
+
if(process.env.GITHUB_TOKEN===undefined){
24
+
core.warning("Define GITHUB_TOKEN into the step environment to have access to the published releases. Adding `env: { GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} }` to your step is usually enough")
0 commit comments