Add setup-buildx action (#71)

This commit is contained in:
CrazyMax 2020-08-11 10:30:13 +02:00
commit 64ca6397e9
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
20 changed files with 11923 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import * as github from '../src/github';
describe('github', () => {
it('returns latest buildx GitHub release', async () => {
const release = await github.getRelease('latest');
console.log(release);
expect(release).not.toBeNull();
expect(release?.tag_name).not.toEqual('');
});
it('returns v0.2.2 buildx GitHub release', async () => {
const release = await github.getRelease('v0.2.2');
console.log(release);
expect(release).not.toBeNull();
expect(release?.tag_name).toEqual('v0.2.2');
});
});