mirror of
https://github.com/versia-pub/docs.git
synced 2025-12-06 06:18:19 +01:00
34 lines
723 B
YAML
34 lines
723 B
YAML
name: Lint & Format
|
|
|
|
on:
|
|
push:
|
|
branches: ["*"]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Install NPM packages
|
|
run: |
|
|
bun install
|
|
|
|
- name: Run linting
|
|
run: |
|
|
bunx @biomejs/biome ci .
|