mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-02-07 20:11:16 -05:00
* chore: install and configure oxlint
* chore: fix liniting issues
* chore: install and configure oxfmt
* ci: add oxlint action instead of biome
* chore: pr feedbacks
* Revert "chore: pr feedbacks"
This reverts commit 525dcd8d9f.
44 lines
779 B
YAML
44 lines
779 B
YAML
name: Checks
|
|
|
|
on:
|
|
workflow_call:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
checks:
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
|
|
- uses: oxc-project/oxlint-action@latest
|
|
with:
|
|
config: .oxlintrc.json
|
|
deny-warnings: true
|
|
|
|
- name: Run type checks
|
|
shell: bash
|
|
run: bun run tsc
|
|
|
|
- name: Run tests
|
|
shell: bash
|
|
run: bun run test --ci --coverage
|
|
|
|
- name: Build project
|
|
shell: bash
|
|
run: bun run build
|