testing ci
This commit is contained in:
@@ -54,12 +54,18 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS
|
||||||
run: |
|
run: |
|
||||||
git lfs install --local
|
UrlBase=$GITHUB_SERVER_URL; \
|
||||||
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
|
||||||
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
||||||
git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
|
/usr/bin/git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"; \
|
||||||
git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||||
git lfs pull
|
|
||||||
|
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
|
- name: Run tests
|
||||||
uses: godot-gdunit-labs/gdUnit4-action@v1
|
uses: godot-gdunit-labs/gdUnit4-action@v1
|
||||||
@@ -91,30 +97,36 @@ jobs:
|
|||||||
image: barichello/godot-ci:mono-4.6
|
image: barichello/godot-ci:mono-4.6
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install node, curl and zip
|
- name: Install curl and zip
|
||||||
run: |
|
run: |
|
||||||
apt update && apt -y install curl zip nodejs
|
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: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
|
|
||||||
# - name: Checkout LFS
|
- name: Checkout LFS
|
||||||
# run: |
|
run: |
|
||||||
# UrlBase=$GITHUB_SERVER_URL; \
|
UrlBase=$GITHUB_SERVER_URL; \
|
||||||
# UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
|
UrlLfsBase=$UrlBase/${{ gitea.repository }}.git/info/lfs/objects; \
|
||||||
# Auth=`/usr/bin/git config --get --local http.$UrlBase/.extraheader`; \
|
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}/batch.extraheader "$Auth"; \
|
||||||
# /usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
/usr/bin/git config --local http.${UrlLfsBase}/.extraheader ''
|
||||||
#
|
|
||||||
# git config --local lfs.transfer.maxretries 1
|
git config --local lfs.transfer.maxretries 1
|
||||||
#
|
|
||||||
# /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
/usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }}
|
||||||
# /usr/bin/git lfs checkout
|
/usr/bin/git lfs checkout
|
||||||
# /usr/bin/git add .
|
/usr/bin/git add .
|
||||||
# /usr/bin/git reset --hard
|
/usr/bin/git reset --hard
|
||||||
|
|
||||||
# - name: Checkout
|
# - name: Checkout
|
||||||
# uses: actions/checkout@v6
|
# uses: actions/checkout@v6
|
||||||
@@ -122,14 +134,14 @@ jobs:
|
|||||||
# lfs: false
|
# lfs: false
|
||||||
# persist-credentials: true
|
# persist-credentials: true
|
||||||
|
|
||||||
- name: Checkout LFS
|
# - name: Checkout LFS
|
||||||
run: |
|
# run: |
|
||||||
git lfs install --local
|
# git lfs install --local
|
||||||
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||||
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
# 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 --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 config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||||
git lfs pull
|
# git lfs pull
|
||||||
|
|
||||||
# - name: Remove GDUnit addon folder because it breaks the build
|
# - name: Remove GDUnit addon folder because it breaks the build
|
||||||
# run: |
|
# run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user