From 9da5a582f051a9868e7e3cc2573d8e907d39446d Mon Sep 17 00:00:00 2001 From: Nick95550 Date: Thu, 5 Oct 2023 15:51:33 +1300 Subject: [PATCH] cache node modules --- .github/workflows/config.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index cd25a738..6f084858 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -14,11 +14,17 @@ jobs: node-version: 18.14.1 cache: 'yarn' + - name: cache node modules + uses: actions/cache@v3 + with: + path: ./node_modules + key: yarn-${{hashFiles('./yarn.lock')}} + - name: cache repo uses: actions/cache@v3 with: path: ./ - key: repo-${{hashFiles('./yarn.lock')}} + key: repo-${{hashFiles('./')}} - name: yarn install run: yarn @@ -41,7 +47,7 @@ jobs: uses: actions/cache@v3 with: path: ./ - key: repo-${{hashFiles('./yarn.lock')}} + key: repo-${{hashFiles('./')}} - name: test contracts run: ITERATIONS=10000 npm test @@ -64,7 +70,7 @@ jobs: uses: actions/cache@v3 with: path: ./ - key: repo-${{hashFiles('./yarn.lock')}} + key: repo-${{hashFiles('./')}} - name: test contracts run: yarn coverage