You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup Bats and libs
1.0.0
This GitHub Action installs Bats and the four major bats libraries:
The action can be also instructed to select which libraries to install.
on: [push]
jobs:
my_test:
runs-on: ubuntu-latest
name: Install Bats and bats libs
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Bats and bats libs
uses: brokenpip3/[email protected]
For each of the Bats libraries, you can choose to install them in the default location (/usr/lib/bats-<lib-name>
) or specify a custom path.
For example, if you want to install bats-support
in the ./test/bats-support
directory, you can configure it as follows:
# ...
- name: Setup Bats and Bats libs
uses: brokenpip3/[email protected]
with:
support-path: ${{ github.workspace }}/test/bats-support
Key | Default | Required | Description |
---|---|---|---|
bats-install | true |
false | Bats installation, cache supported |
bats-version | latest |
false | Bats version |
support-install | true |
false | Bats-support installation |
support-version | 0.3.0 |
false | Bats-support version |
support-path | /usr/lib/bats-support |
false | Bats-support path |
support-clean | true |
false | Bats-support: clean temp files |
assert-install | true |
false | Bats-assert installation |
assert-version | 2.1.0 |
false | Bats-assert version |
assert-path | /usr/lib/bats-assert |
false | Bats-assert path |
assert-clean | true |
false | Bats-assert: clean temp files |
detik-install | true |
false | Bats-detik installation |
detik-version | 1.2.0 |
false | Bats-detik version |
detik-path | /usr/lib/bats-detik |
false | Bats-detik path |
detik-clean | true |
false | Bats-detik: clean temp files |
file-install | true |
false | Bats-file installation |
file-version | 0.3.0 |
false | Bats-file version |
file-path | /usr/lib/bats-file |
false | Bats-file path |
file-clean | true |
false | Bats-file: clean temp files |
-
Add more tests
-
Add Bats binary
-
Add cache for bats binary
-
Better Readme
-
Remove sudo in case of bats libs installed in $HOME
-
Add cache for bats libs