use process.env. instead of @action/core in test and local

This commit is contained in:
platane
2023-10-17 17:30:48 +02:00
parent c9644d3dfa
commit 92f4de3970
4 changed files with 4 additions and 9 deletions

View File

@@ -1,11 +1,10 @@
import * as core from "@actions/core";
import { getGithubUserContribution } from "..";
import { config } from "dotenv";
config({ path: __dirname + "/../../../.env" });
describe("getGithubUserContribution", () => {
const promise = getGithubUserContribution("platane", {
githubToken: process.env.GITHUB_TOKEN ?? core.getInput("github_token"),
githubToken: process.env.GITHUB_TOKEN!,
});
it("should resolve", async () => {