32 lines
594 B
YAML
32 lines
594 B
YAML
name: CI Check
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js 18
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
cache: npm
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run lint and schema checks
|
|
env:
|
|
NEXTAUTH_SECRET: test-secret
|
|
DATABASE_URL: postgresql://user:password@localhost:5432/db
|
|
run: npm run check
|