Merge branch 'raspiblitz:dev' into dev #1
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 bats | |
concurrency: | |
group: test-bats-${{ github.head_ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: ["dev"] | |
paths: | |
- "home.admin/config.scripts/bonus.postgresql.sh" | |
pull_request: | |
branches: ["*"] | |
paths: | |
- "home.admin/config.scripts/bonus.postgresql.sh" | |
jobs: | |
run-bats-tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install bats | |
run: | | |
sudo apt update &>/dev/null | |
sudo apt install -y bats | |
- name: Run the bats tests with postgresql 15 | |
run: | | |
cd test | |
sudo bats ./bonus.postgresql-15.bats | |
- name: Run the bats tests with postgresql 13 | |
run: | | |
cd test | |
sudo bats ./bonus.postgresql-13.bats |