Use native git checkout and streamline tests in Gitea workflows
Tests / tests (push) Successful in 6s
Release / upload-asset (push) Successful in 4s

This commit is contained in:
sandros committed 2026-09-26 23:13:08 +02:00
1 parent 2bdb8c67da
commit 916cad2d8d
2 files changed
+12 -10

No files matched your search

+6 -1
View File
@@ -17,7 +17,12 @@ jobs:
image: composer:2 image: composer:2
steps: steps:
- uses: actions/checkout@v3 - name: Checkout
run: |
git init .
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@$(echo "${{ github.server_url }}" | sed -E 's|https?://||')/${{ github.repository }}.git"
git fetch --depth 1 origin "${{ github.ref }}"
git checkout FETCH_HEAD
- name: Build release zip - name: Build release zip
run: | run: |
+6 -9
View File
@@ -13,18 +13,15 @@ jobs:
image: composer:2 image: composer:2
steps: steps:
- uses: actions/checkout@v3 - name: Checkout
run: |
git init .
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@$(echo "${{ github.server_url }}" | sed -E 's|https?://||')/${{ github.repository }}.git"
git fetch --depth 1 origin "${{ github.ref }}"
git checkout FETCH_HEAD
- name: Install Composer dependencies - name: Install Composer dependencies
run: composer install --no-interaction --prefer-dist run: composer install --no-interaction --prefer-dist
- name: Run PHPUnit - name: Run PHPUnit
run: vendor/bin/phpunit run: vendor/bin/phpunit
if: always()
- name: Run Psalm
run: |
curl -sSL https://github.com/vimeo/psalm/releases/download/4.30.0/psalm.phar -o /usr/local/bin/psalm
chmod +x /usr/local/bin/psalm
psalm --no-cache
if: always()