mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
name: Lint & build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
lint_and_build:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
NEXT_PUBLIC_STACK_URL: http://localhost:8101
|
|
NEXT_PUBLIC_STACK_PROJECT_ID: internal
|
|
NEXT_PUBLIC_STACK_PUBLISHABLE_CLIENT_KEY: internal-project-publishable-client-key
|
|
STACK_SECRET_SERVER_KEY: internal-project-secret-server-key
|
|
SERVER_SECRET: 23-wuNpik0gIW4mruTz25rbIvhuuvZFrLOLtL7J4tyo
|
|
|
|
EMAIL_HOST: 0.0.0.0
|
|
EMAIL_PORT: 2500
|
|
EMAIL_SECURE: false
|
|
EMAIL_USERNAME: test
|
|
EMAIL_PASSWORD: none
|
|
EMAIL_SENDER: noreply@test.com
|
|
|
|
DATABASE_CONNECTION_STRING: postgres://postgres:password@localhost:5432/stackframe
|
|
DIRECT_DATABASE_CONNECTION_STRING: postgres://postgres:password@localhost:5432/stackframe
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [18.x, 20.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v3
|
|
with:
|
|
version: 8
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Build
|
|
run: pnpm build
|
|
- name: Lint
|
|
run: pnpm lint
|