mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 06:10:44 -05:00
- Replaces the Gitea workflows with Github workflows. - Adds a Github issue template. (The reason this is being done directly on master is because it's the branch that the issue templates load from.)
30 lines
574 B
YAML
30 lines
574 B
YAML
name: Run Tests
|
|
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
pull_request:
|
|
branches: ["*"]
|
|
|
|
jobs:
|
|
vitest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: "project/.nvmrc"
|
|
cache: "npm"
|
|
cache-dependency-path: "project/package.json"
|
|
|
|
- name: Install NPM Dependencies
|
|
run: npm install
|
|
working-directory: ./project
|
|
|
|
- name: Run Tests
|
|
run: npm run test
|
|
working-directory: ./project
|