1313 VSCODE_VERSION : ' 1.103.0'
1414
1515jobs :
16- lint :
17- runs-on : ubuntu-24.04-arm
18- steps :
19- - uses : actions/checkout@v4
20- - uses : ./.github/actions/setup-node-and-node-modules
21- with :
22- node-version : 22
23- - uses : actions/cache@v4
24- with :
25- path : |
26- node_modules/.cache/prettier/.prettier-cache
27- packages/*/dist
28- packages/*/tsconfig.build.tsbuildinfo
29- tsconfig.tsbuildinfo
30- key : lint-tools-${{ runner.arch }}-${{ runner.os }}-${{ github.sha }}
31- restore-keys : lint-tools-${{ runner.arch }}-${{ runner.os }}
32- - run : npm run lint
33- build :
34- runs-on : ubuntu-24.04-arm
35- steps :
36- - uses : actions/checkout@v4
37- - uses : ./.github/actions/setup-node-and-node-modules
38- with :
39- node-version : 22
40- - run : npm run build
4116 test-vitest :
4217 strategy :
4318 fail-fast : false
4419 matrix :
45- node : [20, 22]
46- os : [ubuntu-24.04-arm, macos-latest, windows-11-arm ]
20+ node : [22]
21+ os : [macos-latest]
4722 runs-on : ${{ matrix.os }}
4823 steps :
4924 - uses : actions/checkout@v4
@@ -59,33 +34,11 @@ jobs:
5934 tsconfig.tsbuildinfo
6035 key : test-vitest-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
6136 restore-keys : test-vitest-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}
62- - run : npm run test:vitest
63- test-vscode :
64- strategy :
65- fail-fast : false
66- matrix :
67- node : [20, 22]
68- os : [ubuntu-24.04-arm, macos-latest, windows-11-arm]
69- runs-on : ${{ matrix.os }}
70- steps :
71- - uses : actions/checkout@v4
72- - uses : ./.github/actions/setup-node-and-node-modules
73- with :
74- node-version : ${{ matrix.node }}
75- - uses : actions/cache@v4
76- with :
77- path : |
78- packages/*/dist
79- packages/*/tsconfig.build.tsbuildinfo
80- tsconfig.tsbuildinfo
81- key : test-vscode-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}-${{ github.sha }}
82- restore-keys : test-vscode-tools-${{ runner.arch }}-${{ runner.os }}-node-${{ matrix.node }}
83- - uses : actions/cache@v4
84- with :
85- path : .vscode-test
86- key : vscode-test-${{ runner.arch }}-${{ runner.os }}-vscode-${{ env.VSCODE_VERSION }}
87-
88- - run : xvfb-run -a npm run test:vscode
89- if : runner.os == 'Linux'
90- - run : npm run test:vscode
91- if : runner.os != 'Linux'
37+ - run : |
38+ for i in $(seq 1 30); do
39+ if npm run test:vitest -- file-operation.test.ts -t "updating file" > /dev/null 2>&1; then
40+ echo "Attempt #$i: passed"
41+ else
42+ echo "Attempt #$i: failed"
43+ fi
44+ done
0 commit comments