Merge pull request #38 from koenrh/koenrh/add-bats

Add bats
This commit is contained in:
Koen Rouwhorst 2019-10-12 17:40:19 +02:00 committed by GitHub
commit c07b18c016
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 0 deletions

22
bats/Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM debian:stable-slim
LABEL "name"="bats"
LABEL "maintainer"="GitHub Actions <support+actions@github.com>"
LABEL "version"="1.0.0"
LABEL "com.github.actions.name"="Bats for GitHub Actions"
LABEL "com.github.actions.description"="Bash Automated Testing System for Actions"
LABEL "com.github.actions.icon"="terminal"
LABEL "com.github.actions.color"="gray-dark"
COPY LICENSE README.md THIRD_PARTY_NOTICE.md /
RUN apt-get update && \
apt-get install --no-install-recommends -y \
bats && \
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

3
bats/entrypoint.sh Normal file
View file

@ -0,0 +1,3 @@
#!/bin/sh -l
sh -c "bats $*"