add articles endpoint #30
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: Audit | |
on: push | |
jobs: | |
audit: | |
runs-on: ubuntu-latest | |
name: Audit | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Check if .editorconfig exists | |
uses: andstor/file-existence-action@v2 | |
with: | |
files: '.editorconfig' | |
allow_failure: true | |
- name: EditorConfig validation | |
uses: snow-actions/[email protected] | |
- name: Ensure node_modules is ignored by Git | |
uses: dkershner6/gitignore-parser@v1 | |
with: | |
must_deny: 'node_modules' | |
- name: Install modules | |
run: npm ci | |
- name: ESLint validation | |
run: npx eslint --ignore-path .gitignore | |
- name: Check commit message length | |
uses: gsactions/commit-message-checker@v1 | |
with: | |
pattern: '^[^#].{10,72}' | |
error: 'The commit message length must be between 10 and 72' | |
excludeDescription: 'true' # optional: this excludes the description body of a pull request | |
excludeTitle: 'true' # optional: this excludes the title of a pull request | |
checkAllCommitMessages: 'true' # optional: this checks all commits associated with a pull request |