Skip to content

Add funtional tests (not working atm) #11

Add funtional tests (not working atm)

Add funtional tests (not working atm) #11

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]
function-tests:
- name: start app

Check failure on line 17 in .github/workflows/pre-commit.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pre-commit.yaml

Invalid workflow file

You have an error in your yaml syntax on line 17
run: |
set -x
cd expenses-server
./scripts/start_devdb.sh
# fake accoutns config
mkdir -p ../home-lab-secrets/home_automation/expenses/
echo "accounts-config: {'accounts': []}" > ../home-lab-secrets/home_automation/expenses/application-accounts.yml
./scripts/start_dev.sh notail
- name: run tests
run: |
source tests-venv/bin/activate
cd expenses-server
bats_core_pkg --verbose-run --trace api-tests/