Skip to content

Example of config overrides in tests #459

Example of config overrides in tests

Example of config overrides in tests #459

Workflow file for this run

name: ci
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
npm install --ignore-scripts
npx prisma generate
- name: Docker start
run: |
docker compose up waitmysql
docker compose up -d redis rabbitmq
- name: Build TS
run: |
npm run build
- name: Schema preparation
run: |
npm run copy:config
npm run db:migration:run
- name: Generate client
run: |
npm run db:update-client
- name: Run Tests
run: |
npm run test:ci
- name: DB stop
run: |
docker compose down
- name: Generate and validate OpenAPI schema
run: |
npm run spec:generate
automerge:
needs: build
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}