From 3eed8fedbeff20e5f94b4938d039fc8a049ee823 Mon Sep 17 00:00:00 2001 From: Jesse Wattenbarger Date: Sun, 4 May 2025 08:39:55 -0400 Subject: [PATCH] Add first shot at running tests in github workflows --- .github/workflows/bats.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/bats.yml diff --git a/.github/workflows/bats.yml b/.github/workflows/bats.yml new file mode 100644 index 0000000..a1d349d --- /dev/null +++ b/.github/workflows/bats.yml @@ -0,0 +1,25 @@ +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +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 + id: setup-bats + uses: bats-core/bats-action@3.0.0 + with: + support-path: ${{ github_workspace }}/tests/test_helper/bats-support + assert-path: ${{ github_workspace }}/tests/test_helper/bats-assert + - name: ar.bash bats test + shell: bash + env: + BATS_LIB_PATH: ${{ steps.setup-bats.outputs.lib-path }} + TERM: xterm + run: bats tests/test_ar.bats