Skip to content
This repository was archived by the owner on Mar 26, 2023. It is now read-only.

ffurrer2/docker-bats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bats Docker image

This repository provides a lightweight alpine-based Docker image for bats-core, bats-support, bats-assert and bats-file.

Supported tags and respective Dockerfile links

Usage

Command line

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 .

GitHub Actions

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: '.'

Examples

Run Bats tests of a single test file

docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats my-test.bats

Use bats options

docker run -it --rm -v "$(pwd):/workdir" ghcr.io/ffurrer2/bats --recursive --tap .

Show help message

docker run -it --rm ghcr.io/ffurrer2/bats

Show version

docker run -it --rm ghcr.io/ffurrer2/bats --version

License

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.

About

A lightweight alpine-based Docker image for Bats

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •