Skip to content

Commit

Permalink
feat(ci): add type check and node_modules cache
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Mar 17, 2023
1 parent f502f76 commit 7841424
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@ jobs:
- name: Install packages
run: yarn

- name: Run type check
run: yarn tsc

- name: Run eslint
run: yarn lint
10 changes: 10 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ jobs:
run: |
rustup target add aarch64-apple-darwin
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: install frontend dependencies
run: yarn install # change this to npm or pnpm depending on which one you use

Expand Down Expand Up @@ -108,6 +113,11 @@ jobs:
id: get_version
uses: battila7/get-version-action@v2

- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}

- name: Install dependencies
run: yarn install

Expand Down

0 comments on commit 7841424

Please sign in to comment.