diff --git a/.github/workflows/featureRelease.yml b/.github/workflows/featureRelease.yml index 7b70e2ac..9a4f14c7 100644 --- a/.github/workflows/featureRelease.yml +++ b/.github/workflows/featureRelease.yml @@ -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: | diff --git a/.github/workflows/latestRelease.yml b/.github/workflows/latestRelease.yml index 9a43f9ca..99e70286 100644 --- a/.github/workflows/latestRelease.yml +++ b/.github/workflows/latestRelease.yml @@ -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: | diff --git a/.github/workflows/stableRelease.yml b/.github/workflows/stableRelease.yml index 87868be0..19252e2c 100644 --- a/.github/workflows/stableRelease.yml +++ b/.github/workflows/stableRelease.yml @@ -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 diff --git a/.github/workflows/storybookBuild.yml b/.github/workflows/storybookBuild.yml index 4eef56f5..278adc7e 100644 --- a/.github/workflows/storybookBuild.yml +++ b/.github/workflows/storybookBuild.yml @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b1658d6c..4c20a009 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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