From e908cd30858fc04a7440ed4396a4d3e5da4ebc1a Mon Sep 17 00:00:00 2001 From: Minimata Date: Wed, 28 Jan 2026 15:19:04 +0100 Subject: [PATCH] testing ci --- .gitea/workflows/main.yaml | 67 +++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 51a9c999..e0ce92ed 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -22,6 +22,7 @@ jobs: - name: Check out repository code uses: actions/checkout@v6 with: + token: ${{ secrets.TOKEN }} lfs: false - name: Remove buggy pre-push hook run: | @@ -49,35 +50,36 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: + token: ${{ secrets.TOKEN }} lfs: false persist-credentials: true -# - name: Checkout LFS -# run: | -# git lfs install --local -# echo ${{ gitea.server_url }} -# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) -# echo ${{ gitea.repository }} -# AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) -# echo sandwich -# git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader -# echo teub -# git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" -# echo bite -# git lfs pull - - name: Checkout LFS run: | git lfs install --local - echo toto + echo ${{ gitea.server_url }} AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) - echo tata - git config --local --unset http.${{ github.server_url }}/.extraheader - echo http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader - git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + echo ${{ gitea.repository }} + AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path) + echo sandwich + git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader + echo teub + git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" echo bite git lfs pull +# - name: Checkout LFS +# run: | +# git lfs install --local +# echo toto +# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader) +# echo tata +# git config --local --unset http.${{ github.server_url }}/.extraheader +# echo http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader +# git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" +# echo bite +# git lfs pull + - name: Run tests uses: godot-gdunit-labs/gdUnit4-action@v1 with: @@ -111,22 +113,21 @@ jobs: - name: Install curl and zip run: | apt update && apt -y install curl zip -# - name: Install node 24 -# run: | -# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash -# \. "$HOME/.nvm/nvm.sh" -# nvm install 24 -# node -v -# -# - name: Test node version -# run: | -# node -v - - name: Install node - uses: actions/setup-node@v6 - with: - node-version: 24 + - name: Install node 24 + shell: bash -l {0} + run: | + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash + \. "$HOME/.nvm/nvm.sh" + nvm install 24 + node -v + + - name: Test node version + shell: bash -l {0} + run: | + node -v - name: Checkout + shell: bash -l {0} uses: actions/checkout@v6 with: lfs: false