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 6c6f85d
Showing 1 changed file with 66 additions and 3 deletions.
69 changes: 66 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: steps.node_modules_cache_id.outputs.cache-hit != 'true'
run: yarn

check-types:
prettier:
needs: [setup]
runs-on: ubuntu-latest
steps:
Expand All @@ -67,8 +67,8 @@ jobs:
path: node_modules
key: node_modules-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-temp-dir/yarn.lock') }}

- name: Run Check Types
run: yarn check-types
- name: Run Prettier Check
run: yarn prettier

eslint:
needs: [setup]
Expand All @@ -91,6 +91,69 @@ 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

check-types:
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 Check Types
run: yarn check-types

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

0 comments on commit 6c6f85d

Please sign in to comment.