From dd2e615c98e39396339772bcbedf2ab7fd12d512 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 31 Oct 2020 20:21:22 +0100 Subject: [PATCH] Fix tests --- CHANGELOG.md | 2 +- __tests__/meta.test.ts | 72 +++++++++++++++++++++--------------------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea676cf..ce452b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 1.7.0 (2020/10/31) * Use `repo.html_url` for `org.opencontainers.image.source` label to be able to display README on GHCR -* Handle tag-match-latest on Git tag event (#8) +* Handle `tag-match-latest` on Git tag event (#8) ## 1.6.0 (2020/10/28) diff --git a/__tests__/meta.test.ts b/__tests__/meta.test.ts index 7f2f0b2..d5b334a 100644 --- a/__tests__/meta.test.ts +++ b/__tests__/meta.test.ts @@ -74,7 +74,7 @@ describe('null', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=", @@ -95,7 +95,7 @@ describe('null', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=", @@ -124,7 +124,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=dev", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -148,7 +148,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=edge", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -171,7 +171,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=master", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -195,7 +195,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=edge", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -219,7 +219,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=dev", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -244,7 +244,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=edge", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -271,7 +271,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=dev", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -299,7 +299,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=edge", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -328,7 +328,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=edge", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -357,7 +357,7 @@ describe('push', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=master", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -387,7 +387,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=release1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -411,7 +411,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110-RC2", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -436,7 +436,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -462,7 +462,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -489,7 +489,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=1.1.1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -516,7 +516,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=2.0.8-beta.67", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -543,7 +543,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=2.0", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -568,7 +568,7 @@ describe('push tag', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=sometag", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -599,7 +599,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=release1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -624,7 +624,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110-RC2", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -649,7 +649,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -674,7 +674,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=1.1.1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -700,7 +700,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=v1.1.1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -727,7 +727,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=2.0.8", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -752,7 +752,7 @@ describe('latest', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=v1.1.1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -781,7 +781,7 @@ describe('pull_request', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=pr-2", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=1e9249f05bfc090e0688b8fb9c1b347586add504", @@ -805,7 +805,7 @@ describe('pull_request', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=pr-2", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=1e9249f05bfc090e0688b8fb9c1b347586add504", @@ -832,7 +832,7 @@ describe('pull_request', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=pr-2", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=1e9249f05bfc090e0688b8fb9c1b347586add504", @@ -861,7 +861,7 @@ describe('schedule', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=nightly", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -885,7 +885,7 @@ describe('schedule', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -909,7 +909,7 @@ describe('schedule', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=20200110-003000", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -933,7 +933,7 @@ describe('schedule', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=nightly", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -960,7 +960,7 @@ describe('schedule', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=nightly", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", @@ -990,7 +990,7 @@ describe('release', () => { "org.opencontainers.image.title=Hello-World", "org.opencontainers.image.description=This your first repo!", "org.opencontainers.image.url=https://github.com/octocat/Hello-World", - "org.opencontainers.image.source=https://github.com/octocat/Hello-World.git", + "org.opencontainers.image.source=https://github.com/octocat/Hello-World", "org.opencontainers.image.version=v1.1.1", "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071",