2024-04-10 21:25:41 +02:00
|
|
|
name: Run Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: '*'
|
|
|
|
pull_request:
|
|
|
|
branches: '*'
|
|
|
|
|
|
|
|
jobs:
|
2024-04-10 22:51:49 +02:00
|
|
|
run-vitest-tests:
|
2024-04-10 21:25:41 +02:00
|
|
|
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: |
|
|
|
|
rm -rf /workspace/SPT-AKI/Build/server
|
2024-04-10 22:46:05 +02:00
|
|
|
git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch master /workspace/SPT-AKI/Build/server
|
2024-04-10 22:30:11 +02:00
|
|
|
|
|
|
|
cd /workspace/SPT-AKI/Build/server
|
2024-04-10 22:46:05 +02:00
|
|
|
git checkout ${GITHUB_SHA}
|
2024-04-10 22:30:11 +02:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Pull LFS Files
|
|
|
|
run: |
|
|
|
|
cd /workspace/SPT-AKI/Build/server
|
|
|
|
git lfs pull
|
2024-04-10 22:48:45 +02:00
|
|
|
git lfs ls-files
|
2024-04-10 22:30:11 +02:00
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Install NPM Dependencies
|
|
|
|
run: |
|
2024-04-10 22:48:45 +02:00
|
|
|
cd /workspace/SPT-AKI/Build/server/project
|
2024-04-10 22:30:11 +02:00
|
|
|
npm install
|
|
|
|
shell: bash
|
2024-04-10 21:25:41 +02:00
|
|
|
|
|
|
|
- name: Run Tests
|
2024-04-10 22:30:11 +02:00
|
|
|
run: |
|
2024-04-10 22:48:45 +02:00
|
|
|
cd /workspace/SPT-AKI/Build/server/project
|
2024-04-10 22:30:11 +02:00
|
|
|
npm run test
|
|
|
|
shell: bash
|