Skip to content

Commit

Permalink
ci: include compatibility test
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel authored Oct 17, 2024
1 parent 1481562 commit fe71168
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions test/compatibility/by-docker-compose/node-23.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { test } from '../../../src/modules/helpers/test.js';
import { assert } from '../../../src/modules/essentials/assert.js';
import { docker } from '../../../src/modules/helpers/container.js';

const projectName = 'poku';
const serviceName = 'node-23';

test(`Compatibility Tests: ${serviceName}`, async () => {
const dockerfile = docker.dockerfile({
containerName: serviceName,
tagName: `${projectName}-${serviceName}`,
});

await dockerfile.remove();

const compose = docker.compose({
build: true,
cwd: './test/__docker__',
detach: false,
serviceName,
projectName,
// verbose: true,
});

const result = await compose.up();

if (!result) {
assert.fail(`See the logs by running \`docker logs ${serviceName}\``);
}

await dockerfile.remove();
});

0 comments on commit fe71168

Please sign in to comment.