From 7375ec431c5a0dacec2fef2537160123cb272eb9 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Thu, 5 Jan 2023 20:20:08 +0000 Subject: [PATCH] Use NPM CI vs install --- .github/workflows/check-dist.yml | 2 +- .github/workflows/test.yml | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index b54921c..c3cf9ac 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -29,7 +29,7 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm install + run: npm ci - name: Move the committed index.js file run: mv dist/index.js /tmp diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 03b7eae..e0a3601 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,17 +32,13 @@ jobs: cache: 'npm' - name: Install dependencies - run: npm install + run: npm ci - name: Compile run: npm run build - - name: npm test - run: | - npm install - npm ci - ls node_modules/jest - npm run test + - name: Test + run: npm run test - name: Lint run: npm run lint