Merge pull request #241 from gita/add-donate-page #150
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: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
prettier: | |
name: "Prettier" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
# cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run Prettier check | |
run: npm run prettier | |
eslint: | |
name: "ESLint" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
# cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run ESLint check | |
run: npm run lint | |
lint-fix: | |
name: "Fix Lint" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
# cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run TypeScript type check | |
run: npm run lint:fix | |
types: | |
name: "Type Check" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
# cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run TypeScript type check | |
run: npm run type-check | |
find-unused: | |
name: "Find Unused" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "16" | |
# cache: "npm" | |
- name: Install dependencies | |
run: npm install | |
- name: Run TypeScript type check | |
run: npm run find:unused |