-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #692 from alerque/as-gh-action
- Loading branch information
Showing
4 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#syntax=docker/dockerfile:1.2 | ||
|
||
FROM akorn/luarocks:lua5.4-alpine AS builder | ||
|
||
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
dumb-init gcc libc-dev | ||
|
||
COPY ./ /src | ||
WORKDIR /src | ||
|
||
RUN luarocks --tree /pkgdir/usr/local make | ||
RUN find /pkgdir -type f -exec sed -i -e 's!/pkgdir!!g' {} \; | ||
|
||
FROM akorn/luarocks:lua5.4-alpine AS final | ||
|
||
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \ | ||
dumb-init | ||
|
||
LABEL org.opencontainers.image.title="Busted" | ||
LABEL org.opencontainers.image.description="A containerized version of Busted, a unit testing framework for Lua." | ||
LABEL org.opencontainers.image.authors="Caleb Maclennan <[email protected]>" | ||
LABEL org.opencontainers.image.licenses="MIT" | ||
LABEL org.opencontainers.image.url="https://github.com/lunarmodules/busted/pkgs/container/busted" | ||
LABEL org.opencontainers.image.source="https://github.com/lunarmodules/busted" | ||
|
||
COPY --from=builder /pkgdir / | ||
RUN busted --version | ||
|
||
WORKDIR /data | ||
|
||
ENTRYPOINT ["busted", "--verbose"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Busted | ||
description: Busted | ||
inputs: | ||
args: | ||
description: Arguments passed to busted | ||
required: false | ||
default: "." | ||
runs: | ||
using: docker | ||
image: docker://ghcr.io/lunarmodules/busted:v2.0.0 | ||
entrypoint: sh | ||
args: | ||
- -c | ||
- busted ${{ inputs.args }} | ||
branding: | ||
icon: check | ||
color: yellow |