Skip to content

Commit 7538c01

Browse files
committed
fixing windows action
1 parent 87ee8a4 commit 7538c01

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.github/actions/setup-project/action.yml

+9
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ inputs:
55
required: false
66
description: node version to install
77
default: 20.10.0 # is already cached in Ubuntu 22.04 runner
8+
windows-fix:
9+
required: false
10+
description: https://github.com/actions/setup-node/issues/899#issuecomment-1837381044
11+
default: "false"
812
runs:
913
using: composite
1014
steps:
15+
- uses: actions/setup-node@v4
16+
if: ${{ inputs.windows-fix == 'true' }}
17+
name: (Windows fix) Setup node without cache
18+
with:
19+
node-version: ${{ inputs.node-version }}
1120
- name: Enable corepack
1221
shell: bash
1322
run: |

.github/workflows/default-storage.yml

+15
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,21 @@ jobs:
123123
uses: actions/checkout@v4
124124
- name: Setup project
125125
uses: ./.github/actions/setup-project
126+
with:
127+
windows-fix: true
128+
- uses: actions/setup-node@v4
129+
with:
130+
node-version: ${{ inputs.node-version }}
131+
cache: "yarn"
132+
- name: Enable corepack
133+
shell: bash
134+
run: |
135+
corepack enable
136+
yarn --version
137+
- uses: actions/setup-node@v4
138+
with:
139+
node-version: ${{ inputs.node-version }}
140+
cache: "yarn"
126141
- name: Set up MSBuild
127142
uses: microsoft/[email protected]
128143
- name: Setup VSTest.console.exe
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
it.todo("write a test");
2-
3-
function x(_: number) {}

0 commit comments

Comments
 (0)