Skip to content

Commit 1894680

Browse files
committed
reduce reproduction code
1 parent bbdd340 commit 1894680

2 files changed

Lines changed: 2 additions & 56 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -13,37 +13,12 @@ env:
1313
VSCODE_VERSION: '1.103.0'
1414

1515
jobs:
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:
4520
node: [20, 22]
46-
os: [ubuntu-24.04-arm, macos-latest, windows-11-arm]
21+
os: [ubuntu-latest, macos-latest, windows-latest]
4722
runs-on: ${{ matrix.os }}
4823
steps:
4924
- uses: actions/checkout@v4
@@ -60,32 +35,3 @@ jobs:
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 }}
6237
- 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'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"lint:eslint": "eslint .",
2222
"lint:prettier": "prettier --cache --check .",
2323
"test": "run-s -c test:*",
24-
"test:vitest": "vitest --allowOnly runner",
24+
"test:vitest": "vitest runner",
2525
"test:vscode": "vscode-test"
2626
},
2727
"prettier": "@mizdra/prettier-config-mizdra",

0 commit comments

Comments
 (0)