A GitHub action for using bats-core, a Bash Testing framework. It installs via git checkout
onto the host.
- 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 executingbats
. If not specified it defaults to the current working directory.args
are any subsequent arguments passed to bats, iebats {args}
. If not specifiedbats
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 tomaster
(ie HEAD).