Skip to content

Commit

Permalink
chore: cache node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogtiti committed Oct 11, 2024
1 parent be98aa2 commit bd43af3
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Run Tests

on: [push, pull_request]
on:
push:
branches:
- main
tags:
- "!*"
pull_request:

jobs:
test:
Expand All @@ -16,6 +22,14 @@ jobs:
node-version: 18
cache: "yarn"

- name: Cache node_modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install dependencies
run: yarn install

Expand Down

0 comments on commit bd43af3

Please sign in to comment.