From 3ecd4f39f7277978be55c8a1bbe928cfefbd3ad9 Mon Sep 17 00:00:00 2001 From: Refringe Date: Wed, 10 Apr 2024 16:30:11 -0400 Subject: [PATCH] Test Workflow - Drops Checkout Action This removes the actions/checkout action. It wasn't pulling down LFS files properly. We're doing it manually now. --- .gitea/workflows/run-tests.yaml | 35 ++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/run-tests.yaml b/.gitea/workflows/run-tests.yaml index f8e52b42..9cc014df 100644 --- a/.gitea/workflows/run-tests.yaml +++ b/.gitea/workflows/run-tests.yaml @@ -12,15 +12,32 @@ jobs: container: image: refringe/spt-build-node:1.0.7 steps: - - uses: actions/checkout@v3 - with: - lfs: true - fetch-depth: 1 + - name: Clone + run: | + COMMIT_SHA="" + REPO_URL="https://dev.sp-tarkov.com/SPT-AKI/Server.git" - - name: Install Dependencies - working-directory: /workspace/SPT-AKI/Server/project - run: npm install + rm -rf /workspace/SPT-AKI/Build/server + git clone ${REPO_URL} --branch master /workspace/SPT-AKI/Build/server + + cd /workspace/SPT-AKI/Build/server + git checkout ${COMMIT_SHA} + shell: bash + + - name: Pull LFS Files + run: | + cd /workspace/SPT-AKI/Build/server + git lfs pull + shell: bash + + - name: Install NPM Dependencies + run: | + cd /workspace/SPT-AKI/Build/server + npm install + shell: bash - name: Run Tests - working-directory: /workspace/SPT-AKI/Server/project - run: npm run test + run: | + cd /workspace/SPT-AKI/Build/server + npm run test + shell: bash