Merge pull request #383 from Greenstand/revert-382-feat/recent-activi… #35
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: Lint & Commit Check | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run Prettier Check | |
run: yarn prettier --check . | |
- name: Run Lint-Staged (Prettier & ESLint) | |
run: yarn lint-staged | |
- name: Run Commitlint on Last Commit | |
run: git log -1 --pretty=format:%s | npx --no -- commitlint |