Skip to content

Commit

Permalink
Revert "feat: adding functionality for getting the files directly fro…
Browse files Browse the repository at this point in the history
…m main"

This reverts commit d04eb5a.
  • Loading branch information
tjsearsz committed Dec 13, 2022
1 parent 88d09e6 commit 317c40b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
4 changes: 2 additions & 2 deletions dist/main.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
},
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^4.0.0",
"lcov-parse": "^1.0.0"
},
Expand Down
11 changes: 1 addition & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import fs, { promises } from "fs";
import path from "path";
import core from "@actions/core";
import github from "@actions/github";
import { getExecOutput } from "@actions/exec";
import { parse } from "./lcov";
import { diff, diffForMonorepo } from "./comment";
import { upsertComment } from "./github";
Expand Down Expand Up @@ -101,15 +100,7 @@ const main = async () => {

for (const file of lcovBaseArray) {
if (file.path.includes(".info")) {
// const rLcovBase = await promises.readFile(file.path, "utf8");
const rLcovBase = (
await getExecOutput("git", [
"show",
`main:./${monorepoBasePath.split("/")[1]}/${
file.name
}/lcov-base.info`,
])
).stdout;
const rLcovBase = await promises.readFile(file.path, "utf8");
const data = await parse(rLcovBase);
lcovBaseArrayForMonorepo.push({
packageName: file.name,
Expand Down
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"

"@actions/exec@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@actions/exec/-/exec-1.1.1.tgz#2e43f28c54022537172819a7cf886c844221a611"
integrity sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==
dependencies:
"@actions/io" "^1.0.1"

"@actions/github@^4.0.0":
version "4.0.0"
resolved "https://registry.yarnpkg.com/@actions/github/-/github-4.0.0.tgz#d520483151a2bf5d2dc9cd0f20f9ac3a2e458816"
Expand All @@ -41,11 +34,6 @@
dependencies:
tunnel "^0.0.6"

"@actions/io@^1.0.1":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@actions/io/-/io-1.1.2.tgz#766ac09674a289ce0f1550ffe0a6eac9261a8ea9"
integrity sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==

"@ampproject/remapping@^2.1.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d"
Expand Down

0 comments on commit 317c40b

Please sign in to comment.