Merge pull request #235 from pulsar-edit/update-openapi-spec #184
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
# GitHub Action to include all documentation that needs to generated, and all linting | |
# that needs to be done into a single PR. | |
name: CI - Standards | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
standards: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout the latest code | |
uses: actions/checkout@v4 | |
- name: Setup NodeJS - ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Lint Codebase | |
run: npm run lint | |
- name: Generate JSDocs | |
run: npm run js-docs | |
- name: Generate Complexity Reports | |
run: npm run complex | |
- name: Generate OpenAPI Docs | |
run: npm run openapi-docs | |
- name: Commit All Changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: GH Action Standards |