From 1813dce2aa419f674ca827b96161e14612a9bde1 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 1 Dec 2020 05:47:38 +0100 Subject: [PATCH] Fix test --- .github/workflows/ci.yml | 6 ++++-- __tests__/meta.test.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0b2115..e886b69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,9 +83,11 @@ jobs: tag-semver: runs-on: ubuntu-latest steps: - - name: Checkout + - + name: Checkout uses: actions/checkout@v2 - - name: Docker meta + - + name: Docker meta uses: ./ with: images: | diff --git a/__tests__/meta.test.ts b/__tests__/meta.test.ts index d465011..dfe08ad 100644 --- a/__tests__/meta.test.ts +++ b/__tests__/meta.test.ts @@ -737,6 +737,32 @@ describe('push tag', () => { "org.opencontainers.image.licenses=MIT" ] ], + [ + 'event_tag_sometag.env', + { + images: ['ghcr.io/user/app'], + tagSemver: ['{{version}}', '{{major}}.{{minor}}', '{{major}}'], + } as Inputs, + { + main: 'sometag', + partial: [], + latest: true + } as Version, + [ + 'ghcr.io/user/app:sometag', + 'ghcr.io/user/app: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", + "org.opencontainers.image.version=sometag", + "org.opencontainers.image.created=2020-01-10T00:30:00.000Z", + "org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071", + "org.opencontainers.image.licenses=MIT" + ] + ], ])('given %p event ', tagsLabelsTest); });