CI: lint frontend and cache linting workflows

This commit is contained in:
Aravinth Manivannan 2021-10-14 20:03:47 +05:30
parent 89153a589f
commit 91c4002276
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
3 changed files with 43 additions and 0 deletions

View File

@ -11,6 +11,16 @@ jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
node_modules/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v2
- name: Install Rust
@ -27,6 +37,16 @@ jobs:
clippy:
runs-on: ubuntu-latest
steps:
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
node_modules/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v2
- name: Install Rust
@ -41,3 +61,24 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --workspace --tests --all-features
eslint:
runs-on: ubuntu-latest
steps:
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
node_modules/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/checkout@v2
- name: build frtontend
run: make frontend
- name: lint frontend
run: yarn lint

View File

@ -42,6 +42,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
node_modules/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

View File

@ -43,6 +43,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
node_modules/
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}