refactor: whole design #46
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: Code Quality | |
on: | |
pull_request: | |
branches: [main, develop] | |
types: [opened, synchronize] | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ["18.12.0"] | |
steps: | |
- name: ☁ Checkout code | |
uses: actions/checkout@v3 | |
- name: 📬 Caching | |
uses: actions/cache@v3 | |
with: | |
path: | | |
**/node_modules | |
${{ github.workspace }}/.next/cache | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | |
- name: 🟩 Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: 🧰 Install dependencies | |
run: npm ci | |
- name: 🎨 Check code formatting | |
run: npm run test:format | |
- name: 🐛 Lint the code | |
run: npm run test:lint |