Skip to content

Fix/ci workflows

Fix/ci workflows #2

Workflow file for this run

name: Test in pull requests
on:
pull_request:
branches:
- dev
- main
jobs:
run-test-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout git files
uses: actions/checkout@v3
- name: Run docker-compose
uses: hoverkraft-tech/compose-action@v2.0.1
with:
up-flags: "-d"
compose-file: "./docker/docker-compose-test.yml"
- name: Use Node.js Version 20.X
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: "true"
- name: Install dependencies
run: npm ci
- name: Run lint
run: npm run lint
- name: Run tests
run: npm run test:ci
env:
WEBHOOK_SECRET: ${{ secrets.WEBHOOK_SECRET }}
CLERK_JWT_SECRET_KEY: ${{ secrets.CLERK_JWT_SECRET_KEY}}
SECRET_KEY_SESSION: ${{secrets.SECRET_KEY_SESSION}}
MONGO_URI: ${{secrets.MONGO_URI}}
DATABASE_URL: ${{secrets.DATABASE_URL}}
DATABASE_TEST_URL: ${{secrets.DATABASE_TEST_URL}}
PORT: 3000