Fix Gitea runner: replace actions/checkout@v4 with git clone, upgrade PHP 8.3->8.4
API CI/CD / Validate (composer + pint) (push) Failing after 1m4s
API CI/CD / Test (PHPUnit) (push) Failing after 56s
API CI/CD / Build frontend assets (push) Failing after 26s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-06-21 13:17:56 -04:00
parent d04d28c764
commit d6e2d4266e
+34 -9
View File
@@ -39,10 +39,15 @@ jobs:
name: Validate (composer + pint)
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/devcontainers/php:8.3
image: mcr.microsoft.com/devcontainers/php:8.4
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 https://gitea:${{ secrets.GITHUB_TOKEN }}@192.168.3.80/melabidi/alrahma_sunday_school_api.git .
env:
GIT_SSL_NO_VERIFY: "1"
- name: Install system dependencies
run: |
@@ -86,10 +91,15 @@ jobs:
name: Test (PHPUnit)
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/devcontainers/php:8.3
image: mcr.microsoft.com/devcontainers/php:8.4
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 https://gitea:${{ secrets.GITHUB_TOKEN }}@192.168.3.80/melabidi/alrahma_sunday_school_api.git .
env:
GIT_SSL_NO_VERIFY: "1"
- name: Install system dependencies
run: |
@@ -172,7 +182,12 @@ jobs:
image: node:22-bookworm-slim
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 https://gitea:${{ secrets.GITHUB_TOKEN }}@192.168.3.80/melabidi/alrahma_sunday_school_api.git .
env:
GIT_SSL_NO_VERIFY: "1"
- name: Cache npm dependencies
uses: actions/cache@v4
@@ -205,10 +220,15 @@ jobs:
name: Security audit
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/devcontainers/php:8.3
image: mcr.microsoft.com/devcontainers/php:8.4
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 https://gitea:${{ secrets.GITHUB_TOKEN }}@192.168.3.80/melabidi/alrahma_sunday_school_api.git .
env:
GIT_SSL_NO_VERIFY: "1"
- name: Install system dependencies
run: |
@@ -252,7 +272,7 @@ jobs:
name: Deploy to shared hosting (PHP)
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/devcontainers/php:8.3
image: mcr.microsoft.com/devcontainers/php:8.4
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs: [test, build, security]
environment:
@@ -260,7 +280,12 @@ jobs:
url: ${{ vars.PRODUCTION_URL }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
run: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
git clone --depth 1 https://gitea:${{ secrets.GITHUB_TOKEN }}@192.168.3.80/melabidi/alrahma_sunday_school_api.git .
env:
GIT_SSL_NO_VERIFY: "1"
- name: Install system dependencies
run: |