mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-05 17:29:09 +08:00
Run docker from javascript
This commit is contained in:
15
src/model/docker.test.js
Normal file
15
src/model/docker.test.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import Action from './action';
|
||||
import Docker from './docker';
|
||||
import Image from './image';
|
||||
|
||||
describe('Docker', () => {
|
||||
it('builds', async () => {
|
||||
const tag = await Docker.build({
|
||||
// path: Action.rootFolder,
|
||||
dockerfile: `${Action.rootFolder}/Dockerfile`,
|
||||
image: new Image({ version: '2019.2.11f1', targetPlatform: 'WebGL' }),
|
||||
});
|
||||
|
||||
expect(tag).toStrictEqual('unity-builder:2019.2.11f1-webgl');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user