mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-17 21:37:06 -04:00
99 lines
2.3 KiB
YAML
99 lines
2.3 KiB
YAML
name: Checks
|
|
|
|
on:
|
|
workflow_call:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: checks-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
lint:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
|
|
- uses: oxc-project/oxlint-action@0cc5d219e22e8cdfd8f67be492213ad3860e25e4 # latest
|
|
with:
|
|
config: .oxlintrc.json
|
|
deny-warnings: true
|
|
version: 1.56.0
|
|
|
|
typecheck:
|
|
timeout-minutes: 10
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
|
|
- name: Run type checks
|
|
shell: bash
|
|
run: bun run tsc
|
|
|
|
test-server:
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
|
|
- name: Run server tests
|
|
shell: bash
|
|
run: bun run test:server
|
|
|
|
test-client:
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
|
|
- name: Run client tests
|
|
shell: bash
|
|
run: bun run test:client
|
|
|
|
build:
|
|
timeout-minutes: 15
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Install dependencies
|
|
uses: "./.github/actions/install-dependencies"
|
|
|
|
- name: Build project
|
|
shell: bash
|
|
run: bun run build
|