0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00
server/.github/workflows/run-lint.yaml

40 lines
861 B
YAML
Raw Normal View History

name: Run Code Linter
on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
jobs:
biome:
runs-on: ubuntu-latest
container:
image: oven/bun:latest
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
with:
lfs: false
- name: Mark Workspace as Safe
run: git config --system --add safe.directory "$PWD"
- name: Checkout LFS
run: git lfs pull
working-directory: ${{ github.workspace }}
- name: Install Dependencies
run: bun install
working-directory: ${{ github.workspace }}/project
- name: Run Linter
run: bun run lint
working-directory: ${{ github.workspace }}/project