GitHub Action
Setup Bats and libs
GitHub Action to setup the four major bats libs:
The action can be also instructed to select which libs that will be installed.
Can be used in duo with setup-bats action to setup all the bats libs you need for your CI jobs.
An example:
on: [push]
jobs:
my_test:
runs-on: ubuntu-latest
name: Install Bats common libs
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup BATS
uses: mig4/setup-bats@v1
- name: Setup Bats libs
uses: brokenpip3/[email protected]
-
support-install
: Bats-support installation, default to true- required:
false
- default:
true
- required:
-
support-version
: Bats-support version, default to latest- required:
false
- default:
0.3.0
- required:
-
support-path
: Bats-support path- required:
false
- default:
/usr/lib/bats-support
- required:
-
assert-install
: Bats-assert installation, default to true- required:
false
- default:
true
- required:
-
assert-version
: Bats-assert version, default to latest- required:
false
- default:
0.2.0
- required:
-
assert-path
: Bats-assert path- required:
false
- default:
/usr/lib/bats-assert
- required:
-
detik-install
: Bats-detik installation, default to true- required:
false
- default:
true
- required:
-
detik-version
: Bats-detik version, default to latest- required:
false
- default:
1.1.0
- required:
-
detik-path
: Bats-detik path- required:
false
- default:
/usr/lib/bats-detik
- required:
-
file-install
: Bats-file installation, default to true- required:
false
- default:
true
- required:
-
file-version
: Bats-file version, default to latest- required:
false
- default:
0.3.0
- required:
-
file-path
: Bats-file path- required:
false
- default:
/usr/lib/bats-file
- required: