2024-04-10 21:25:41 +02:00
|
|
|
name: Run Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: '*'
|
|
|
|
pull_request:
|
|
|
|
branches: '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
trigger-main-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2024-04-10 22:07:30 +02:00
|
|
|
image: refringe/spt-build-node:1.0.7
|
2024-04-10 21:25:41 +02:00
|
|
|
steps:
|
2024-04-10 22:30:11 +02:00
|
|
|
- name: Clone
|
|
|
|
run: |
|
|
|
|
COMMIT_SHA="<commit-sha>"
|
|
|
|
REPO_URL="https://dev.sp-tarkov.com/SPT-AKI/Server.git"
|
2024-04-10 21:25:41 +02:00
|
|
|
|
2024-04-10 22:30:11 +02:00
|
|
|
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
|
2024-04-10 21:25:41 +02:00
|
|
|
|
|
|
|
- name: Run Tests
|
2024-04-10 22:30:11 +02:00
|
|
|
run: |
|
|
|
|
cd /workspace/SPT-AKI/Build/server
|
|
|
|
npm run test
|
|
|
|
shell: bash
|