diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..a988ead --- /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@v3 + with: + fetch-depth: 0 + + - name: Install bats + run: npm install -g 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