Merge pull request #46 from smswithoutborders/develop #115
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 and Formatting Check | |
on: | |
push: | |
branches: | |
- staging | |
pull_request: | |
branches: | |
- staging | |
jobs: | |
check-code-quality: | |
name: Check Code Quality | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install Node.js dependencies | |
run: yarn install | |
- name: Run ESLint | |
run: yarn eslint . | |
- name: Run Prettier | |
run: yarn prettier --check . |