Fixes
Some checks failed
Gitea Actions / Run-Tests-On-Amd64 (push) Failing after 23s
Gitea Actions / Run-Tests-On-Arm64 (push) Has been cancelled

This commit is contained in:
Thomas 2025-02-28 19:26:11 +01:00
parent 80bf56a9a4
commit fc6394761e
3 changed files with 12 additions and 7 deletions

View File

@ -1,4 +1,4 @@
name: Gitea Actions Demo
name: Gitea Actions
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on: [push]
@ -13,6 +13,9 @@ jobs:
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Clean Up
run: |
docker container stop $(docker container ls -aq) && docker system prune -af --volumes
- name: Init
run: |
make make-init ENVS="ENV=ci TAG=latest"
@ -47,6 +50,9 @@ jobs:
uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
- name: Clean Up
run: |
docker container stop $(docker container ls -aq) && docker system prune -af --volumes
- name: Init
run: |
make make-init ENVS="ENV=ci TAG=latest"

View File

@ -1,6 +1,7 @@
<?php
use Symfony\Component\Dotenv\Dotenv;
$_SERVER['PANTHER_WEB_SERVER_DIR'] = __DIR__ .'/../web/';
require dirname(__DIR__).'/vendor/autoload.php';
@ -13,8 +14,6 @@ if (file_exists(dirname(__DIR__).'/config/bootstrap.php')) {
if (file_exists(__DIR__ . '/../var/test.sqlite')) {
unlink(__DIR__ . '/../var/test.sqlite');
}
//system('sqlite3 '. __DIR__ . '/../var/test.sqlite < ' . __DIR__ .'/article.sql');
//system('sqlite3 '. __DIR__ . '/../var/test.sqlite < ' . __DIR__ .'/sqlite.sql');
system('mysql -u root --password=Wichtig1 -h mysql --execute="drop database psc_test"');
system('mysql -u root --password=Wichtig1 -h mysql --execute="create database psc_test"');
system('mysql -u root --password=Wichtig1 -h mysql psc_test < '.__DIR__.'/mysql.sql');
system('mysql -u psc --password=psc -h mysql --execute="drop database psc_test"');
system('mysql -u psc --password=psc -h mysql --execute="create database psc_test"');
system('mysql -u psc --password=psc -h mysql psc_test < '.__DIR__.'/mysql.sql');

View File

@ -45,7 +45,7 @@
</div>
<div class="card mt-1">
<div class="card-header">
{{'Kalkuations Status'|trans}}
{{'Kalkulations Status'|trans}}
</div>
<div id="calcStatus" class="p-2">
</div>