(WIP) using embla-carousel library to replace events-carousel #1858
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Source Code Check | |
on: | |
- push | |
jobs: | |
lint: | |
name: Run ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- run: npm i | |
- run: npm run lint:strict | |
tsc: | |
name: Run Type Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- run: npm i | |
- run: npm run typecheck | |
prettier: | |
name: Run Prettier Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- run: npm i | |
- run: npm run format:check | |
test: | |
name: Run API tests | |
runs-on: ubuntu-latest | |
container: node:18-alpine | |
services: | |
postgres: | |
image: postgres | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_HOST: postgres | |
POSTGRES_DB: test | |
ports: | |
- 5432:5432 | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- run: npm i | |
- name: Check migrations and schema match | |
run: npx prisma migrate diff --exit-code --from-migrations "prisma/migrations" --to-schema-datamodel "prisma/schema.prisma" --shadow-database-url "postgres://postgres:postgres@postgres:5432/test?schema=public" | |
- name: Run API tests | |
run: npm run coverage | |
env: | |
DATABASE_URL: postgres://postgres:postgres@postgres:5432/test?schema=public | |
DATABASE_URL_DIRECT: postgres://postgres:postgres@postgres:5432/test |