From d3b5597081b79f9a0a871ba860aab130e3707a1c Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Wed, 13 Mar 2024 17:25:30 +0000 Subject: [PATCH] fix: Move Github Action Workflow --- .github/{ => workflows}/test.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) rename .github/{ => workflows}/test.yml (51%) diff --git a/.github/test.yml b/.github/workflows/test.yml similarity index 51% rename from .github/test.yml rename to .github/workflows/test.yml index 0e25ad2..33c7f3e 100644 --- a/.github/test.yml +++ b/.github/workflows/test.yml @@ -14,21 +14,17 @@ jobs: - uses: actions/cache/restore@v3 with: - key: npm-dependency-cache-${{hashfiles(package-lock.json)}} + key: npm-dependency-cache-${{hashfiles('./package-lock.json')}} path: ./node_modules - - run: - name: Install Dependencies - command: | - npm ci + - name: Install Dependencies + run: npm ci - uses: actions/cache/save@v3 + if: always() with: - key: npm-dependency-cache-${{hashfiles(package-lock.json)}} + key: npm-dependency-cache-${{hashfiles('./package-lock.json')}} path: ./node_modules - if: always() - - run: - name: Run Tests - command: | - npm run test + - name: Run Tests + run: npm run test