name: Run Tests on: push: branches: '*' pull_request: branches: '*' jobs: vitest: runs-on: ubuntu-latest container: image: refringe/spt-build-node:1.0.7 steps: - name: Clone run: | rm -rf /workspace/SPT-AKI/Build/server git clone https://dev.sp-tarkov.com/SPT-AKI/Server.git --branch master /workspace/SPT-AKI/Build/server cd /workspace/SPT-AKI/Build/server git checkout ${GITHUB_SHA} shell: bash - name: Pull LFS Files run: | cd /workspace/SPT-AKI/Build/server git lfs pull git lfs ls-files shell: bash - name: Cache NPM Dependencies 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') }} - name: Install NPM Dependencies if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' run: | cd /workspace/SPT-AKI/Build/server/project rm -rf node_modules npm install shell: bash - name: Run Tests run: | cd /workspace/SPT-AKI/Build/server/project npm run test shell: bash