-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use default buildx on runner Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
- Loading branch information
CrazyMax
committed
Aug 12, 2020
1 parent
15c6a86
commit 5bb3f54
Showing
9 changed files
with
299 additions
and
171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| import fs = require('fs'); | ||
| import * as buildx from '../src/buildx'; | ||
| import * as path from 'path'; | ||
| import * as os from 'os'; | ||
|
|
||
| const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'setup-buildx-')); | ||
|
|
||
| describe('buildx', () => { | ||
| it('is available', async () => { | ||
| expect(await buildx.isAvailable()).toBe(true); | ||
| }, 100000); | ||
|
|
||
| it('acquires v0.2.2 version of buildx', async () => { | ||
| const buildxBin = await buildx.install('v0.2.2', tmpDir); | ||
| console.log(buildxBin); | ||
| expect(fs.existsSync(buildxBin)).toBe(true); | ||
| }, 100000); | ||
|
|
||
| it('acquires latest version of buildx', async () => { | ||
| const buildxBin = await buildx.install('latest', tmpDir); | ||
| console.log(buildxBin); | ||
| expect(fs.existsSync(buildxBin)).toBe(true); | ||
| }, 100000); | ||
| }); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.