Skip to content

Commit 5de7d58

Browse files
committed
ci: fix windows issues in few workflows
1 parent 703ea72 commit 5de7d58

4 files changed

+15
-4
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
id: should_run
3131
name: Should Run
3232
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
33+
shell: bash
3334
- if: steps.should_run.outputs.shouldrun == 'true'
3435
name: Checkout repository
3536
uses: actions/checkout@v3
@@ -74,6 +75,7 @@ jobs:
7475
id: should_run
7576
name: Should Run
7677
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
78+
shell: bash
7779
- if: steps.should_run.outputs.shouldrun == 'true'
7880
name: Checkout repository
7981
uses: actions/checkout@v3

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

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
id: should_run
3434
name: Should Run
3535
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
36+
shell: bash
3637
- if: steps.should_run.outputs.shouldrun == 'true'
3738
name: Set git to use LF #to once and for all finish neverending fight between Unix and Windows
3839
run: |
@@ -60,13 +61,13 @@ jobs:
6061
- if: steps.packagejson.outputs.exists == 'true'
6162
name: Install dependencies
6263
id: first-installation
63-
run: npm install --loglevel verbose
64+
run: npm ci
6465
continue-on-error: true
6566
- if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
6667
name: Clear NPM cache and install deps again
6768
run: |
6869
npm cache clean --force
69-
npm install --loglevel verbose
70+
npm ci
7071
- if: steps.packagejson.outputs.exists == 'true'
7172
name: Test
7273
run: npm test --if-present

.github/workflows/if-nodejs-release.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
- name: Check if Node.js project and has package.json
8686
id: packagejson
8787
run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
88+
shell: bash
8889
- if: steps.packagejson.outputs.exists == 'true'
8990
name: Check package-lock version
9091
uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
@@ -98,7 +99,14 @@ jobs:
9899
cache-dependency-path: '**/package-lock.json'
99100
- if: steps.packagejson.outputs.exists == 'true'
100101
name: Install dependencies
101-
run: npm install
102+
id: first-installation
103+
run: npm ci
104+
continue-on-error: true
105+
- if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
106+
name: Clear NPM cache and install deps again
107+
run: |
108+
npm cache clean --force
109+
npm ci
102110
- if: steps.packagejson.outputs.exists == 'true'
103111
name: Add plugin for conventional commits for semantic-release
104112
run: npm install --save-dev [email protected]

.github/workflows/if-nodejs-version-bump.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
cache-dependency-path: '**/package-lock.json'
3838
- if: steps.packagejson.outputs.exists == 'true'
3939
name: Install dependencies
40-
run: npm install
40+
run: npm ci
4141
- if: steps.packagejson.outputs.exists == 'true'
4242
name: Assets generation
4343
run: npm run generate:assets --if-present

0 commit comments

Comments
 (0)