Skip to content

Commit b05d28d

Browse files
author
asyncapi-bot
committed
ci: update of files from global .github repo
1 parent 61fde0d commit b05d28d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/if-nodejs-pr-testing.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ jobs:
3939
run: |
4040
git config --global core.autocrlf false
4141
git config --global core.eol lf
42+
shell: bash
4243
- if: steps.should_run.outputs.shouldrun == 'true'
4344
name: Checkout repository
44-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4546
- if: steps.should_run.outputs.shouldrun == 'true'
4647
name: Check if Node.js project and has package.json
4748
id: packagejson
@@ -53,27 +54,26 @@ jobs:
5354
id: lockversion
5455
- if: steps.packagejson.outputs.exists == 'true'
5556
name: Setup Node.js
56-
uses: actions/setup-node@v3
57+
uses: actions/setup-node@v4
5758
with:
5859
node-version: "${{ steps.lockversion.outputs.version }}"
59-
cache: 'npm'
60-
cache-dependency-path: '**/package-lock.json'
60+
- if: steps.lockversion.outputs.version == '18' && matrix.os == 'windows-latest'
61+
#npm cli 10 is buggy because of some cache issue
62+
name: Install npm cli 8
63+
shell: bash
64+
run: npm install -g [email protected]
6165
- if: steps.packagejson.outputs.exists == 'true'
6266
name: Install dependencies
63-
id: first-installation
67+
shell: bash
6468
run: npm ci
65-
continue-on-error: true
66-
- if: steps.first-installation.outcome != 'success' && steps.packagejson.outputs.exists == 'true'
67-
name: Clear NPM cache and install deps again
68-
run: |
69-
npm cache clean --force
70-
npm ci
7169
- if: steps.packagejson.outputs.exists == 'true'
7270
name: Test
7371
run: npm test --if-present
74-
- if: steps.packagejson.outputs.exists == 'true'
72+
- if: steps.packagejson.outputs.exists == 'true' && matrix.os == 'ubuntu-latest'
73+
#linting should run just one and not on all possible operating systems
7574
name: Run linter
7675
run: npm run lint --if-present
7776
- if: steps.packagejson.outputs.exists == 'true'
7877
name: Run release assets generation to make sure PR does not break it
78+
shell: bash
7979
run: npm run generate:assets --if-present

0 commit comments

Comments
 (0)