From 5684561b668846ff9a1b1b850da311913fc5a005 Mon Sep 17 00:00:00 2001 From: Minimata Date: Tue, 27 Jan 2026 19:04:34 +0100 Subject: [PATCH] fuck tests I guess --- .gitea/workflows/dev-branch.yaml | 21 +++++++++++++-------- .gitea/workflows/main.yaml | 10 +--------- .gitea/workflows/release-branch.yaml | 21 +++++++++++++-------- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/.gitea/workflows/dev-branch.yaml b/.gitea/workflows/dev-branch.yaml index bf3d74ce..4ef58857 100644 --- a/.gitea/workflows/dev-branch.yaml +++ b/.gitea/workflows/dev-branch.yaml @@ -25,19 +25,24 @@ jobs: apt update && apt -y install curl nodejs xvfb - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v3 with: lfs: false - persist-credentials: true - name: Checkout LFS run: | - git lfs install --local - AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) - AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) - git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader - git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" - git lfs pull + UrlBase=$GITHUB_SERVER_URL; \ + UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \ + Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \ + /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \ + /usr/bin/git config --local http.${UrlLfsBase}/.extraheader '' + + git config --local lfs.transfer.maxretries 1 + + /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }} + /usr/bin/git lfs checkout + /usr/bin/git add . + /usr/bin/git reset --hard - name: Run tests uses: godot-gdunit-labs/gdUnit4-action@v1 diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index f270c03b..e675ca97 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -129,18 +129,10 @@ jobs: # git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" # git lfs pull - # GDUnit action replacement while waiting for 4.6 support + # Replacement while waiting for 4.6 support - name: Import resources and build solution run: | godot --headless --editor --build-solutions --quit --import --path $PWD - - name: Run tests - run: | - godot --headless --path "$PWD" -s -d addons/gdUnit4/bin/GdUnitCmdTool.gd -a ./test -rd ./test/reports --ignoreHeadlessMode - - name: Upload test report - uses: actions/upload-artifact@v3-node20 - with: - name: Test Report - path: ${{ github.workspace }}/reports/test-result.html - name: Remove GDUnit addon folder because it breaks the build run: | diff --git a/.gitea/workflows/release-branch.yaml b/.gitea/workflows/release-branch.yaml index 09d19f47..d704fa1a 100644 --- a/.gitea/workflows/release-branch.yaml +++ b/.gitea/workflows/release-branch.yaml @@ -40,19 +40,24 @@ jobs: apt update && apt -y install curl zip nodejs - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v3 with: lfs: false - persist-credentials: true - name: Checkout LFS run: | - git lfs install --local - AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) - AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) - git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader - git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" - git lfs pull + UrlBase=$GITHUB_SERVER_URL; \ + UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \ + Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \ + /usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \ + /usr/bin/git config --local http.${UrlLfsBase}/.extraheader '' + + git config --local lfs.transfer.maxretries 1 + + /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }} + /usr/bin/git lfs checkout + /usr/bin/git add . + /usr/bin/git reset --hard - name: Import resources and build solution run: |