Skip to content

Merge pull request #70 from hack4impact-calpoly/feat/auth-flow-logout… #146

Merge pull request #70 from hack4impact-calpoly/feat/auth-flow-logout…

Merge pull request #70 from hack4impact-calpoly/feat/auth-flow-logout… #146

Workflow file for this run

name: ci
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main", "develop"]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: prfc_ci
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
strategy:
matrix:
node-version: [22.x]
env:
CI: "true"
DATABASE_URL: "mysql://root:root@localhost:3306/prfc_ci"
SMTP_HOST: "smtp.test.com"
SMTP_USER: "test"
SMTP_PASS: "test"
FROM_EMAIL: "test@test.com"
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run migrations
run: npx prisma migrate deploy
- name: Generate Prisma client
run: npx prisma generate
- name: Run linter
run: npm run lint
- name: Type check
run: npx tsc --noEmit
- name: Build
run: npm run build
- name: Run tests
run: npm test