mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-12 19:20:48 +02:00

* #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
39 lines
831 B
YAML
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
|