Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

use npm ci #224

Merged
merged 2 commits into from
Aug 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/featureRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ jobs:
fetch-depth: 0
-
name: Set up Node.js environment
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
cache: 'npm'
-
name: Checkout frontend
run: |
npm i
npm ci
-
name: Update Sonar
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/latestRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
uses: actions/checkout@v2
-
name: Set up Node.js environment
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
cache: 'npm'
-
name: Checkout frontend
run: |
npm i
npm ci
-
name: Update Sonar
run: |
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/stableRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
- name: Set up Project
uses: actions/checkout@v2
- name: Set up Node.js environment
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
cache: 'npm'
- name: Build frontend
run: |
npm i
npm ci
npm run-script build
cp -r build webapp_provider/public
- name: Login to DockerHub
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/storybookBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ jobs:
- name: Set up Project
uses: actions/checkout@v2
- name: Set up Node.js environment
uses: actions/setup-node@v2.1.5
uses: actions/setup-node@v2
with:
node-version: 12
node-version: 14
cache: 'npm'
- name: Build storybook
run: |
npm i
npm ci
npm run build-storybook
cp -r storybook-static storybook_provider/public
- name: Login to DockerHub
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
-
name: Set up Node.js environment
uses: actions/setup-node@v2
with:
node-version: 14
cache: 'npm'
# Install NPM dependencies, build the webpage and start it
# and run all Cypress tests
- name: Start FE and run jest tests
run: |
npm i
npm ci
npm test -- --watchAll=false
npm start &
- name: Wait
Expand Down