mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:31:12 -05:00
feat: Add GitHub Actions workflows
This commit is contained in:
44
.github/workflows/lint.yml
vendored
Normal file
44
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
name: Lint & Type Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['**']
|
||||||
|
pull_request:
|
||||||
|
branches: ['**']
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Lint & Type Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Bun
|
||||||
|
uses: oven-sh/setup-bun@v1
|
||||||
|
with:
|
||||||
|
bun-version: latest
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: bun install
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
run: bun run lint
|
||||||
|
continue-on-error: false
|
||||||
|
|
||||||
|
- name: TypeScript Check (Frontend)
|
||||||
|
run: bunx tsc --noEmit
|
||||||
|
continue-on-error: false
|
||||||
|
|
||||||
|
- name: TypeScript Check (API)
|
||||||
|
working-directory: ./api
|
||||||
|
run: bunx tsc --noEmit --module node16 --moduleResolution node16 --target ES2022 --lib ES2022 **/*.ts
|
||||||
|
continue-on-error: false
|
||||||
|
|
||||||
|
- name: Notify Vercel
|
||||||
|
if: always()
|
||||||
|
uses: vercel/repository-dispatch/actions/status@v1
|
||||||
|
with:
|
||||||
|
name: 'Vercel - thrillwiki: lint'
|
||||||
|
status: ${{ job.status }}
|
||||||
Reference in New Issue
Block a user