From b31f762a955fd47e2bfe99d8eb5117b33ff1f0ec Mon Sep 17 00:00:00 2001 From: Simon Lydell Date: Sat, 19 Aug 2023 20:54:20 +0200 Subject: [PATCH] Simplify ci.yml --- .github/workflows/ci.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c1c137..5002990 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,21 +13,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Use Node.js - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3 with: node-version: 20.x - - name: Cache node_modules - id: cache-node_modules + - id: cache-node_modules uses: actions/cache@v3 with: path: node_modules key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }} - - name: npm ci - if: steps.cache-node_modules.outputs.cache-hit != 'true' + - if: steps.cache-node_modules.outputs.cache-hit != 'true' run: npm ci - - name: test - run: npm test + - run: npm test