From 46da4a1a41dbbdd6a67271311dcc72db58500ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Trellu?= Date: Fri, 17 Nov 2023 18:45:59 -0500 Subject: [PATCH] [ci] Add bats install --- .github/workflows/shell_testing.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/shell_testing.yml diff --git a/.github/workflows/shell_testing.yml b/.github/workflows/shell_testing.yml new file mode 100644 index 0000000..2ebbee8 --- /dev/null +++ b/.github/workflows/shell_testing.yml @@ -0,0 +1,27 @@ +name: Shell testing with BATS + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + ansible-lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Install BATS requirements + run: | + mkdir ~/shell-testing + cd ~/shell-testing + git init + git submodule add https://github.com/bats-core/bats-core.git bats + git submodule add https://github.com/bats-core/bats-support.git test_helper/bats-support + git submodule add https://github.com/bats-core/bats-assert.git test_helper/bats-assert + git submodule add https://github.com/bats-core/bats-file.git test_helper/bats-file + cd bats + bash install.sh