Skip to content

Commit

Permalink
Merge pull request #1051 from skaut/dependabot/npm_and_yarn/actions/g…
Browse files Browse the repository at this point in the history
…ithub-6.0.0

Bump @actions/github from 5.1.1 to 6.0.0
  • Loading branch information
github-actions[bot] authored Jun 21, 2024
2 parents 3859dbd + 877a26f commit 1621967
Show file tree
Hide file tree
Showing 9 changed files with 2,779 additions and 5,481 deletions.
3 changes: 0 additions & 3 deletions __tests__/issue-management.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as core from "@actions/core";
import { mocked } from "jest-mock";
import mockedEnv from "mocked-env";
import nock from "nock";

Expand All @@ -24,7 +22,6 @@ describe("[env variable mock]", () => {

beforeEach(() => {
restore = mockedEnv({ GITHUB_REPOSITORY: "OWNER/REPO" });
mocked(core).getInput.mockReturnValue("GH_TOKEN");
});
afterEach(() => {
restore();
Expand Down
18 changes: 17 additions & 1 deletion __tests__/setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
import * as nock from "nock";
import * as github from "@actions/github";
import type { Octokit } from "@octokit/core";
import type { PaginateInterface } from "@octokit/plugin-paginate-rest";
import type { Api } from "@octokit/plugin-rest-endpoint-methods/dist-types/types";
import nock from "nock";
import nodeFetch from "node-fetch";

nock.disableNetConnect();

type GitHub = Api & Octokit & { paginate: PaginateInterface };

jest.mock("../src/octokit", () => ({
octokit: (): GitHub =>
github.getOctokit("GH_TOKEN", {
request: {
fetch: nodeFetch,
},
}),
}));
3 changes: 0 additions & 3 deletions __tests__/tested-version.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as core from "@actions/core";
import { mocked } from "jest-mock";
import mockedEnv from "mocked-env";
import nock from "nock";

Expand All @@ -15,7 +13,6 @@ describe("[env variable mock]", () => {

beforeEach(() => {
restore = mockedEnv({ GITHUB_REPOSITORY: "OWNER/REPO" });
mocked(core).getInput.mockReturnValue("GH_TOKEN");
});
afterEach(() => {
restore();
Expand Down
3 changes: 0 additions & 3 deletions __tests__/wpvc-config.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import * as core from "@actions/core";
import { mocked } from "jest-mock";
import mockedEnv from "mocked-env";
import nock from "nock";

Expand All @@ -14,7 +12,6 @@ describe("Mocked env variables", () => {

beforeEach(() => {
restore = mockedEnv({ GITHUB_REPOSITORY: "OWNER/REPO" });
mocked(core).getInput.mockReturnValue("GH_TOKEN");
});
afterEach(() => {
restore();
Expand Down
Loading

0 comments on commit 1621967

Please sign in to comment.