1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-04-22 14:46:39 +02:00

Merge remote-tracking branch 'upstream/master' into fix-parse-secret-containing-equal-character

# Conflicts:
#	__tests__/buildx.test.ts
This commit is contained in:
Mathieu Bergeron 2020-10-23 16:35:54 -04:00
commit c8e09bfd16
7 changed files with 143 additions and 5 deletions

View file

@ -2,6 +2,7 @@ import * as fs from 'fs';
import * as path from 'path';
import * as semver from 'semver';
import * as buildx from '../src/buildx';
import * as docker from '../src/docker';
import * as context from '../src/context';
const tmpNameSync = path.join('/tmp/.docker-build-push-jest', '.tmpname-jest').split(path.sep).join(path.posix.sep);
@ -91,11 +92,18 @@ describe('isLocalOrTarExporter', () => {
});
describe('getVersion', () => {
it('valid', async () => {
const version = await buildx.getVersion();
console.log(`version: ${version}`);
expect(semver.valid(version)).not.toBeNull();
}, 100000);
async function isDaemonRunning() {
return await docker.isDaemonRunning();
}
(isDaemonRunning() ? it : it.skip)(
'valid',
async () => {
const version = await buildx.getVersion();
console.log(`version: ${version}`);
expect(semver.valid(version)).not.toBeNull();
},
100000
);
});
describe('parseVersion', () => {