fix: when schema is not found in post config correct http code is returned #13
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: pull_request | |
on: [pull_request, workflow_dispatch] | |
env: | |
DB_HOST: localhost | |
DB_NAME: postgres | |
jobs: | |
eslint: | |
name: Run TS Project eslint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [20.x, 22.x] | |
steps: | |
- name: Check out TS Project Git repository | |
uses: actions/checkout@v4 | |
- name: Init nodejs | |
uses: ./.github/actions/init-npm | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Run TS Project linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
github_token: ${{ secrets.github_token }} | |
# Enable linters | |
eslint: true | |
prettier: true | |
eslint_extensions: ts | |
openapi-lint: | |
name: Run OpenAPI lint Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out TS Project Git repository | |
uses: actions/checkout@v4 | |
- name: Init nodejs | |
uses: ./.github/actions/init-npm | |
- name: OpenAPI Lint Checks | |
run: npx @redocly/cli lint --format=github-actions openapi3.yaml | |
tests: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [20.x, 22.x] | |
services: | |
# Label used to access the service container | |
postgres: | |
# Docker Hub image | |
image: postgres:14 | |
# Provide the password for postgres | |
env: | |
POSTGRES_PASSWORD: "postgres" | |
POSTGRES_USER: postgres | |
POSTGRES_DB: postgres | |
ports: | |
- 5432:5432 | |
# Set health checks to wait until postgres has started | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
steps: | |
- name: Check out TS Project Git repository | |
uses: actions/checkout@v4 | |
- name: Init nodejs | |
uses: ./.github/actions/init-npm | |
- name: Run tests | |
run: npm run test | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Test Reporters ${{ matrix.node }} | |
path: ./reports/** |