Skip to content

Commit

Permalink
ci: lint ci
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyi committed Oct 20, 2022
1 parent b4b4109 commit 59593cf
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,27 @@ jobs:
- name: Run Check Types
run: yarn check-types

prettier:
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Restore cache from yarn.lock
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: Restore cache from node_modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Prettier Check
run: yarn prettier

eslint:
needs: [setup]
runs-on: ubuntu-latest
Expand All @@ -91,6 +112,48 @@ jobs:
- name: Run ESlint
run: yarn lint

stylelint:
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Restore cache from yarn.lock
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: Restore cache from node_modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Stylelint
run: yarn stylelint

lint-doc:
needs: [setup]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Restore cache from yarn.lock
uses: actions/cache@v2
with:
path: package-temp-dir
key: lock-${{ github.sha }}

- name: Restore cache from node_modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Doc Lint
run: yarn lint-doc

test:
runs-on: ubuntu-latest
needs: [setup]
Expand Down

0 comments on commit 59593cf

Please sign in to comment.