Skip to content

Commit

Permalink
chore: add timeout to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 29, 2024
1 parent f5ce4b0 commit 954ead1
Show file tree
Hide file tree
Showing 5 changed files with 456 additions and 395 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import * as github from "@actions/github";
import * as core from "@actions/core";
import { Value } from "@sinclair/typebox/value";
import { Env, envSchema } from "./types/env";
import { envSchema } from "./types/env";
import { assistivePricingSettingsSchema, PluginInputs } from "./types/plugin-input";
import { run } from "./run";

/**
* Run the plugin as a GitHub Action instance.
*/
async function actionRun() {

const payloadEnv = {
SUPABASE_KEY: process.env.SUPABASE_KEY,
SUPABASE_URL: process.env.SUPABASE_URL,
Expand Down
1 change: 1 addition & 0 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export async function run(inputs: PluginInputs, env: Env) {
octokit,
logger: new Logs("info"),
adapters: {} as ReturnType<typeof createAdapters>,
env,
};
context.adapters = createAdapters(supabaseClient, context);

Expand Down
2 changes: 2 additions & 0 deletions src/types/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Octokit } from "@octokit/rest";
import { AssistivePricingSettings } from "./plugin-input";
import { createAdapters } from "../adapters";
import { Logs } from "@ubiquity-dao/ubiquibot-logger";
import { Env } from "./env";

export type SupportedEvents = "issues.labeled" | "issues.unlabeled" | "label.edited" | "issue_comment.created" | "push";

Expand All @@ -13,4 +14,5 @@ export interface Context<T extends SupportedEvents | "issue_comment" = Supported
adapters: ReturnType<typeof createAdapters>;
config: AssistivePricingSettings;
logger: Logs;
env: Env;
}
Loading

0 comments on commit 954ead1

Please sign in to comment.