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 .directoryis the working directory used prior to executingbats. If not specified it defaults to the current working directory.argsare any subsequent arguments passed to bats, iebats {args}. If not specifiedbatswill not execute, and will just install on the host (so could be used in subsequent build steps).versionto specify the git tag or branch to use (bats-core tags). It defaults tomaster(ie HEAD).