raspiblitz/.github/workflows/test-bats.yml
/rootzoll abe57c9693
#4568 LNbits install fix for AMD & VMs + update lnbits to v0.12.11 (#4768)
* #4568 add missing dependencies for AMD64
* Update: LNbits 0.12.11
* #4765 add check postgres installed check
* #3264 add nginx header adjustments
* Fix postgres bats test (#4769)
* #4204 move .env to data disc
* letsencrypt takes care of selfsigned certs
2024-10-04 23:15:19 +02:00

39 lines
831 B
YAML

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