revert removing id #22
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: Code Quality Checks and formatting | |
on: | |
push: | |
branches: ["dev/main", "dev/*", "feat/*", "refactor/*", "fix/*", "test/*"] | |
paths-ignore: | |
- LICENSE | |
- README.md | |
- .gitignore | |
- ".github/*" | |
pull_request: | |
branches: ["dev/main", "dev/*", "feat/*", "refactor/*", "fix/*", "test/*"] | |
paths-ignore: | |
- LICENSE | |
- README.md | |
- .gitignore | |
- ".github/*" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Run Eslint | |
run: npx eslint . | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Run Prettier | |
run: npx prettier --check . | |
check-newlines: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set script permissions | |
run: chmod +x ./scripts/check-newlines.sh | |
- name: Run check-newlines script | |
run: ./scripts/check-newlines.sh |