Skip to content

Commit 7b98450

Browse files
committed
[workflow/test] updated workflow
1 parent 878782b commit 7b98450

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/actions/install-dependencies/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ runs:
99
node-version: 20
1010
cache: 'yarn'
1111

12+
- name: Cache node modules
13+
uses: actions/cache@v3
14+
with:
15+
path: node_modules
16+
key: ${{ runner.os }}-node-${{ hashFiles('yarn.lock') }}
17+
restore-keys: |
18+
${{ runner.os }}-node-
19+
1220
- name: Install dependencies
1321
run: yarn install
1422
shell: bash

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ jobs:
1616
with:
1717
fetch-depth: 0
1818

19+
- name: Install dependencies
20+
uses: ./.github/actions/install-dependencies
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
1924
- name: Run ESLint
2025
run: yarn run lint
2126
continue-on-error: false

0 commit comments

Comments
 (0)