Skip to content

chore: generating docs using spectaql #39

chore: generating docs using spectaql

chore: generating docs using spectaql #39

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master, development]
jobs:
code_check:
name: Code check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Installing Dependencies
run: npm install
- name: Running prettier
run: npm run prettier:fix
- name: Running eslint
run: npm run lint:fix
- name: Building
run: npm run build
- name: Running tests
run: npm run test
generate_docs:
name: Generates GraphQL-API documentation
runs-on: ubuntu-latest
needs: [code_check]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Installing spectaql
run: npm install spectaql
- name: Generating documentation
run: pnpx spectaql ./docs/config.yaml