Skip to content

refactor swagger message #238

refactor swagger message

refactor swagger message #238

Workflow file for this run

name: CI
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U user"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Debug dependencies
run: |
ls node_modules/@testing-library
npm list @testing-library/jest-dom
- name: Check formatting
run: npm run format:check
- name: Run ESLint
run: npm run lint
- name: Run tests with coverage
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: |
npm run db:migrate
npm run test:coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}