From d6e2d4266e793b97c97205086dd369ca9f7e4c00 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 21 Jun 2026 13:17:56 -0400 Subject: [PATCH] Fix Gitea runner: replace actions/checkout@v4 with git clone, upgrade PHP 8.3->8.4 --- .gitea/workflows/build.yml | 43 ++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index bfbdc415..21b436df 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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: |