/bats-core

A GitHub Action for running BATS

bats-core

A GitHub action for using bats-core, a Bash Testing framework. It installs via git checkout onto the host.

How do I use it?

- name: test
  uses: landtechnologies/bats-core@v2
  with:
    directory: some/working/directory
    version: master
    args: --timing -r .
  • directory is the working directory used prior to executing bats. If not specified it defaults to the current working directory.
  • args are any subsequent arguments passed to bats, ie bats {args}. If not specified bats will not execute, and will just install on the host (so could be used in subsequent build steps).
  • version to specify the git tag or branch to use (bats-core tags). It defaults to master (ie HEAD).