build and install dagger from source

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-04-25 21:19:33 +02:00
parent 7d447c263c
commit a4e1b392be
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
13 changed files with 152 additions and 12 deletions

View file

@ -2,6 +2,13 @@ import {describe, expect, it} from '@jest/globals';
import * as fs from 'fs';
import * as dagger from '../src/dagger';
describe('build', () => {
it.skip('valid', async () => {
const daggerBin = await dagger.build('https://github.com/dagger/dagger.git#refs/pull/2161/head');
expect(fs.existsSync(daggerBin)).toBe(true);
}, 100000);
});
describe('install', () => {
it('acquires latest version of Dagger', async () => {
const daggerBin = await dagger.install('latest');