Skip to content

feat(api): add mockoon configuration #3244

feat(api): add mockoon configuration

feat(api): add mockoon configuration #3244

Workflow file for this run

name: Lint
on:
pull_request:
branches: [main, staging]
push:
branches: [main, staging]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Run ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6.3.0
with:
node-version: "24"
- name: Install dependencies
run: |
cd api && npm ci
cd ../app && npm ci
cd ../analytics && npm ci
cd ../widget && npm ci
- name: Run ESLint
run: npm run lint
lint-openapi:
name: Lint OpenAPI spec
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Lint OpenAPI spec
run: npx --yes @redocly/cli lint --config api/redocly.yaml
lint-analytics-models:
name: Run SQLFluff on Analytics models
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install sqlfluff
run: pip install --no-cache-dir sqlfluff==3.5.0
- name: Lint dbt project
run: sqlfluff lint --config analytics/dbt/analytics/.sqlfluff analytics/dbt/analytics/models