Skip to content

Commit b4ab900

Browse files
committed
cosign install
Signed-off-by: CrazyMax <[email protected]>
1 parent 5759e27 commit b4ab900

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

__tests__/cosign/install.test.itg.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import {describe, expect, test} from '@jest/globals';
17+
import {describe, expect, it, test} from '@jest/globals';
1818
import * as fs from 'fs';
1919

2020
import {Install} from '../../src/cosign/install';
@@ -36,3 +36,13 @@ describe('download', () => {
3636
})()).resolves.not.toThrow();
3737
}, 60000);
3838
});
39+
40+
describe('build', () => {
41+
it('builds refs/pull/4492/head', async () => {
42+
const install = new Install();
43+
const toolPath = await install.build('https://github.com/sigstore/cosign.git#refs/pull/4492/head');
44+
expect(fs.existsSync(toolPath)).toBe(true);
45+
const buildxBin = await install.install(toolPath);
46+
expect(fs.existsSync(buildxBin)).toBe(true);
47+
}, 100000);
48+
});

0 commit comments

Comments
 (0)