From 8f8efb7dddc7293bac6fd6963f7ef7790cac36ee Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 21 May 2024 21:30:27 +0000 Subject: [PATCH] Gitea workflows rebrand (!346) Co-authored-by: clodan Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/346 Co-authored-by: Alex Co-committed-by: Alex --- .gitea/workflows/build-trigger.yaml | 2 +- .gitea/workflows/run-lint.yaml | 16 ++++++++-------- .gitea/workflows/run-test.yaml | 18 +++++++++--------- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build-trigger.yaml b/.gitea/workflows/build-trigger.yaml index b6c9373d..007e514c 100644 --- a/.gitea/workflows/build-trigger.yaml +++ b/.gitea/workflows/build-trigger.yaml @@ -17,7 +17,7 @@ jobs: - name: Clone Build Repository run: | rm -rf ../Build - git clone https://${{ secrets.BUILD_USERNAME }}:${{ secrets.BUILD_ACCESS_TOKEN }}@dev.sp-tarkov.com/SPT-AKI/Build.git ../Build + git clone https://${{ secrets.BUILD_USERNAME }}:${{ secrets.BUILD_ACCESS_TOKEN }}@dev.sp-tarkov.com/SPT/Build.git ../Build - name: Trigger Branch working-directory: ../Build diff --git a/.gitea/workflows/run-lint.yaml b/.gitea/workflows/run-lint.yaml index fabc8634..c831d8e2 100644 --- a/.gitea/workflows/run-lint.yaml +++ b/.gitea/workflows/run-lint.yaml @@ -14,16 +14,16 @@ jobs: steps: - name: Clone run: | - rm -rf /workspace/SPT-AKI/Build/server - git clone https://dev.sp-tarkov.com/${GITHUB_REPOSITORY}.git --branch master /workspace/SPT-AKI/Build/server + rm -rf /workspace/SPT/Build/server + git clone https://dev.sp-tarkov.com/${GITHUB_REPOSITORY}.git --branch master /workspace/SPT/Build/server - cd /workspace/SPT-AKI/Build/server + cd /workspace/SPT/Build/server git checkout ${GITHUB_SHA} shell: bash - name: Pull LFS Files run: | - cd /workspace/SPT-AKI/Build/server + cd /workspace/SPT/Build/server git lfs pull git lfs ls-files shell: bash @@ -32,13 +32,13 @@ jobs: id: cache-npm-dependencies uses: actions/cache@v4 with: - path: /workspace/SPT-AKI/Build/server/project/node_modules - key: npm-dependencies-${{ hashFiles('/workspace/SPT-AKI/Build/server/project/package.json') }} + path: /workspace/SPT/Build/server/project/node_modules + key: npm-dependencies-${{ hashFiles('/workspace/SPT/Build/server/project/package.json') }} - name: Install NPM Dependencies if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' run: | - cd /workspace/SPT-AKI/Build/server/project + cd /workspace/SPT/Build/server/project rm -rf node_modules npm install shell: bash @@ -46,7 +46,7 @@ jobs: - name: Run Linter id: run-tests run: | - cd /workspace/SPT-AKI/Build/server/project + cd /workspace/SPT/Build/server/project npm run lint shell: bash diff --git a/.gitea/workflows/run-test.yaml b/.gitea/workflows/run-test.yaml index 196672a8..38a5338f 100644 --- a/.gitea/workflows/run-test.yaml +++ b/.gitea/workflows/run-test.yaml @@ -25,10 +25,10 @@ jobs: REF=${GITHUB_REF_NAME} fi - rm -rf /workspace/SPT-AKI/Server/current - git clone https://dev.sp-tarkov.com/${{ github.repository }}.git /workspace/SPT-AKI/Server/current + rm -rf /workspace/SPT/Server/current + git clone https://dev.sp-tarkov.com/${{ github.repository }}.git /workspace/SPT/Server/current - cd /workspace/SPT-AKI/Server/current + cd /workspace/SPT/Server/current git fetch git checkout $REF env: @@ -39,7 +39,7 @@ jobs: - name: Pull LFS Files run: | - cd /workspace/SPT-AKI/Server/current && ls -lah + cd /workspace/SPT/Server/current && ls -lah git lfs pull && git lfs ls-files shell: bash @@ -47,21 +47,21 @@ jobs: id: cache-npm-dependencies uses: actions/cache@v4 with: - path: /workspace/SPT-AKI/Server/current/project/node_modules - key: npm-dependencies-${{ hashFiles('/workspace/SPT-AKI/Server/current/project/package.json') }} + path: /workspace/SPT/Server/current/project/node_modules + key: npm-dependencies-${{ hashFiles('/workspace/SPT/Server/current/project/package.json') }} - name: Install NPM Dependencies if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' run: | - cd /workspace/SPT-AKI/Server/current/project - rm -rf /workspace/SPT-AKI/Server/current/project/node_modules + cd /workspace/SPT/Server/current/project + rm -rf /workspace/SPT/Server/current/project/node_modules npm install shell: bash - name: Run Tests id: run-tests run: | - cd /workspace/SPT-AKI/Server/current/project + cd /workspace/SPT/Server/current/project npm run test shell: bash