mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-16 09:33:52 +08:00
18 lines
534 B
TypeScript
18 lines
534 B
TypeScript
|
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');
|
||
|
});
|
||
|
});
|