finalized gui4de project #1
This file contains hidden or 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: Run Taskfile CI | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["**"] | |
| jobs: | |
| check-for-keys: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Search for OpenAI API Keys | |
| run: | | |
| if grep -r --exclude-dir=".git" -E 'sk-[a-zA-Z0-9]{48}' .; then | |
| echo "❌ OpenAI API Key gefunden! Commit blockieren." | |
| exit 1 | |
| fi | |
| echo "✅ Kein API-Key gefunden." | |
| taskfile-backend-ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.13" | |
| - name: Install Task CLI | |
| run: | | |
| curl -sL https://taskfile.dev/install.sh | sh | |
| sudo mv ./bin/task /usr/local/bin/ | |
| - name: Set up pip environment | |
| run: | | |
| python -m venv .venv | |
| source .venv/bin/activate | |
| pip install -r requirements.txt | |
| - name: Run backend Taskfile CI | |
| run: | | |
| source .venv/bin/activate | |
| task backend:run-ci | |
| taskfile-frontend-ci: | |
| runs-on: ubuntu-latest | |
| needs: taskfile-backend-ci | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: "22.13.0" | |
| - name: Install Task CLI | |
| run: | | |
| curl -sL https://taskfile.dev/install.sh | sh | |
| sudo mv ./bin/task /usr/local/bin/ | |
| - name: Run frontend Taskfile CI | |
| run: | | |
| task frontend:run-ci |