Skip to content

Commit

Permalink
ci: fix adapter check
Browse files Browse the repository at this point in the history
  • Loading branch information
icebob committed Apr 1, 2024
1 parent afbac1e commit 774122f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/integration/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,10 @@ if (process.env.GITHUB_ACTIONS_CI) {
];
}

describe("Integration tests", () => {
describe(`Integration tests (${process.env.ADAPTER})`, () => {
for (const adapter of Adapters) {
if (process.env.ADAPTER && adapter.name !== process.env.ADAPTER) continue;
const name = adapter.name || adapter.type;
if (process.env.ADAPTER && name !== process.env.ADAPTER) continue;

const getAdapter = options => {
if (adapter.options) return _.defaultsDeep({}, { options }, adapter);
Expand All @@ -231,7 +232,7 @@ describe("Integration tests", () => {
getAdapter.isSQL = ["Knex"].includes(adapter.type);
getAdapter.IdColumnType = ["Knex"].includes(adapter.type) ? "integer" : "string";

describe(`Adapter: ${adapter.name || adapter.type}`, () => {
describe(`Adapter: ${name}`, () => {
describe("Test adapter", () => AdapterTests(getAdapter, adapter.type));
describe("Test methods", () => MethodTests(getAdapter, adapter.type));
describe("Test scopes", () => ScopeTests(getAdapter, adapter.type));
Expand Down

0 comments on commit 774122f

Please sign in to comment.