Skip to content

Commit 6f270f3

Browse files
committed
Add test
1 parent 2860e42 commit 6f270f3

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

__tests__/meta.test.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,32 @@ describe('latest', () => {
928928
"org.opencontainers.image.licenses=MIT"
929929
]
930930
],
931+
[
932+
'event_tag_v1.1.1.env',
933+
{
934+
images: ['org/app', 'ghcr.io/MyUSER/MyApp'],
935+
tagMatchLatest: false,
936+
} as Inputs,
937+
{
938+
main: 'v1.1.1',
939+
partial: [],
940+
latest: false
941+
} as Version,
942+
[
943+
'org/app:v1.1.1',
944+
'ghcr.io/myuser/myapp:v1.1.1',
945+
],
946+
[
947+
"org.opencontainers.image.title=Hello-World",
948+
"org.opencontainers.image.description=This your first repo!",
949+
"org.opencontainers.image.url=https://github.com/octocat/Hello-World",
950+
"org.opencontainers.image.source=https://github.com/octocat/Hello-World",
951+
"org.opencontainers.image.version=v1.1.1",
952+
"org.opencontainers.image.created=2020-01-10T00:30:00.000Z",
953+
"org.opencontainers.image.revision=90dd6032fac8bda1b6c4436a2e65de27961ed071",
954+
"org.opencontainers.image.licenses=MIT"
955+
]
956+
],
931957
])('given %p event ', tagsLabelsTest);
932958
});
933959

0 commit comments

Comments
 (0)