setup-nextflow/test/utils.ts
Thomas A. Christensen II 2098c3cdb2 feat!: Remove manual API calling tests
These tests are no longer used since the switch to OctokitWrapper, and
conflict with packages required for the implementation of throttling, so
remove them.
2024-01-21 20:57:22 -06:00

12 lines
329 B
TypeScript

export function getToken(first: boolean): string {
const token = process.env["GITHUB_TOKEN"] || ""
if (!token && first) {
/* eslint-disable-next-line no-console */
console.warn(
"Skipping GitHub tests. Set $GITHUB_TOKEN to run REST client and GraphQL client tests"
)
first = false
}
return token
}