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.
This commit is contained in:
parent
90cec27718
commit
3ecd4f39f7
@ -12,15 +12,32 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
image: refringe/spt-build-node:1.0.7
|
image: refringe/spt-build-node:1.0.7
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Clone
|
||||||
with:
|
run: |
|
||||||
lfs: true
|
COMMIT_SHA="<commit-sha>"
|
||||||
fetch-depth: 1
|
REPO_URL="https://dev.sp-tarkov.com/SPT-AKI/Server.git"
|
||||||
|
|
||||||
- name: Install Dependencies
|
rm -rf /workspace/SPT-AKI/Build/server
|
||||||
working-directory: /workspace/SPT-AKI/Server/project
|
git clone ${REPO_URL} --branch master /workspace/SPT-AKI/Build/server
|
||||||
run: npm install
|
|
||||||
|
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
|
- name: Run Tests
|
||||||
working-directory: /workspace/SPT-AKI/Server/project
|
run: |
|
||||||
run: npm run test
|
cd /workspace/SPT-AKI/Build/server
|
||||||
|
npm run test
|
||||||
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user