Gitea workflows rebrand (!346)

Co-authored-by: clodan <clodan@clodan.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT/Server/pulls/346
Co-authored-by: Alex <clodan@noreply.dev.sp-tarkov.com>
Co-committed-by: Alex <clodan@noreply.dev.sp-tarkov.com>
This commit is contained in:
Alex 2024-05-21 21:30:27 +00:00 committed by Refringe
parent 37f4a23acf
commit 8f8efb7ddd
3 changed files with 18 additions and 18 deletions

View File

@ -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

View File

@ -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

View File

@ -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