From 90aa37be8c4c80c0c70a125125d1bdcda758dab1 Mon Sep 17 00:00:00 2001 From: Alejandro Lazaro Date: Wed, 18 Sep 2024 15:35:48 +0200 Subject: [PATCH] ci: add test workflow Fix https://github.com/virtualroot/asdf-opentofu/issues/40 --- .github/workflows/test.yml | 24 ++++++++++++++++++++++++ {tests => test}/parse-legacy-file.bats | 0 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/test.yml rename {tests => test}/parse-legacy-file.bats (100%) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b3e7795 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,24 @@ +name: Test + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + name: bats + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Install bats + run: npm install bats@1.11.0 + + - name: Run tests + run: npm exec -- bats test/*.bats diff --git a/tests/parse-legacy-file.bats b/test/parse-legacy-file.bats similarity index 100% rename from tests/parse-legacy-file.bats rename to test/parse-legacy-file.bats