Add tests and CI/CD action to run them #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test suite | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install bats | |
run: | | |
sudo apt-get install -y bats | |
- name: Setup path | |
run: | | |
# script under test is in repo root directory | |
echo "$GITHUB_WORKSPACE" >> "$GITHUB_PATH" | |
- name: Run tests | |
run: | | |
./tests.bats |