This repository provides a lightweight alpine-based Docker image for bats-core, bats-support, bats-assert and bats-file.
To run all Bats tests in the current directory, run the following command:
docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats:latest .
To use bats
within GitHub Actions, add the following job to your workflow file:
bats:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: bats
uses: docker://ghcr.io/ffurrer2/bats:latest
with:
args: '.'
docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats my-test.bats
docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats --recursive --tap .
docker run -it --rm ghcr.io/ffurrer2/bats
docker run -it --rm ghcr.io/ffurrer2/bats --version
This project is licensed under the MIT License.
View license information for bats-core, bats-support, bats-assert and bats-file.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc. from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in the repo-info repository's alpine/ directory.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.