Skip to content

Commit 06371a5

Browse files
committed
chore: reuse cache in workflows
1 parent 380e478 commit 06371a5

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ jobs:
1414
uses: actions/setup-node@v4
1515
with:
1616
node-version: 22.x
17-
- name: Install dependencies
18-
run: npm ci --omit=optional
17+
- name: Install Node and Dependencies
18+
uses: ./.github/actions/npm-setup
19+
with:
20+
runner: ubuntu-22.04
21+
node-version: 22.x
1922
- name: Code linting
2023
run: npm run lint:ci

.github/workflows/test-template.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,11 @@ jobs:
130130
- name: Code checkout
131131
uses: actions/checkout@v4
132132

133-
- name: Install NodeJS ${{ inputs.node-version }}
134-
uses: actions/setup-node@v4
133+
- name: Install Node ${{ matrix.node-version }} and Dependencies
134+
uses: ./.github/actions/npm-setup
135135
with:
136-
node-version: ${{ inputs.node-version }}
137-
138-
- name: Install dependencies
139-
run: npm ci --omit=optional
136+
runner: ${{ matrix.runner }}
137+
node-version: ${{ matrix.node-version }}
140138

141139
- name: Run tests
142140
run: npm run test:ci -- ${{ inputs.workspace }}

0 commit comments

Comments
 (0)