-
-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into test/refactor-analytics-tests
- Loading branch information
Showing
3 changed files
with
6 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ jobs: | |
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v3 | ||
- name: Check if Node.js project and has package.json | ||
id: packagejson | ||
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT | ||
|
@@ -50,26 +50,14 @@ jobs: | |
id: lockversion | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "${{ steps.lockversion.outputs.version }}" | ||
cache: 'npm' | ||
cache-dependency-path: '**/package-lock.json' | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Install dependencies | ||
id: first-installation | ||
run: npm ci | ||
continue-on-error: true | ||
- if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Clear NPM cache and install deps again | ||
id: second-installation | ||
run: | | ||
npm cache clean --force | ||
npm ci | ||
continue-on-error: true | ||
- if: steps.second-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Install without cache | ||
run: npm ci --no-cache | ||
run: npm install | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Run test | ||
run: npm test --if-present | ||
|
@@ -116,14 +104,9 @@ jobs: | |
continue-on-error: true | ||
- if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Clear NPM cache and install deps again | ||
id: second-installation | ||
run: | | ||
npm cache clean --force | ||
npm ci | ||
continue-on-error: true | ||
- if: steps.second-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true' | ||
name: Install without cache | ||
run: npm ci --no-cache | ||
- if: steps.packagejson.outputs.exists == 'true' | ||
name: Add plugin for conventional commits for semantic-release | ||
run: npm install --save-dev [email protected] | ||
|