mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Update workflows to use Bun
Updates the test and lint workflows to use the `oven/bun` container and run the commands with `bun`.
This commit is contained in:
parent
206dee78f4
commit
615e641270
29
.github/workflows/run-lint.yaml
vendored
29
.github/workflows/run-lint.yaml
vendored
@ -9,24 +9,31 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
biome:
|
biome:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: oven/bun:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Git and LFS
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y git git-lfs
|
||||||
|
git --version
|
||||||
|
git lfs --version
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
|
- name: Mark Workspace as Safe
|
||||||
|
run: git config --system --add safe.directory "$PWD"
|
||||||
|
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS
|
||||||
run: git lfs pull
|
run: git lfs pull
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- name: Install Dependencies
|
||||||
with:
|
run: bun install
|
||||||
node-version-file: "project/.nvmrc"
|
working-directory: ${{ github.workspace }}/project
|
||||||
cache: "npm"
|
|
||||||
cache-dependency-path: "project/package.json"
|
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
|
||||||
run: npm install
|
|
||||||
working-directory: ./project
|
|
||||||
|
|
||||||
- name: Run Linter
|
- name: Run Linter
|
||||||
run: npm run lint
|
run: bun run lint
|
||||||
working-directory: ./project
|
working-directory: ${{ github.workspace }}/project
|
||||||
|
29
.github/workflows/run-test.yaml
vendored
29
.github/workflows/run-test.yaml
vendored
@ -9,24 +9,31 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
vitest:
|
vitest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: oven/bun:latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install Git and LFS
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y git git-lfs
|
||||||
|
git --version
|
||||||
|
git lfs --version
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
|
|
||||||
|
- name: Mark Workspace as Safe
|
||||||
|
run: git config --system --add safe.directory "$PWD"
|
||||||
|
|
||||||
- name: Checkout LFS
|
- name: Checkout LFS
|
||||||
run: git lfs pull
|
run: git lfs pull
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- name: Install Dependencies
|
||||||
with:
|
run: bun install
|
||||||
node-version-file: "project/.nvmrc"
|
working-directory: ${{ github.workspace }}/project
|
||||||
cache: "npm"
|
|
||||||
cache-dependency-path: "project/package.json"
|
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
|
||||||
run: npm install
|
|
||||||
working-directory: ./project
|
|
||||||
|
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: npm run test
|
run: bun run test
|
||||||
working-directory: ./project
|
working-directory: ${{ github.workspace }}/project
|
||||||
|
Loading…
x
Reference in New Issue
Block a user