Skip to content

Commit b081b78

Browse files
authored
Update ci to fix failed runs due to too long unix socket path (#62)
* Update ci.yml jobs failed due to Unix domain socket path becoming too long * Update ci.yml * try updating vscode-test.mjs
1 parent 9945b66 commit b081b78

2 files changed

Lines changed: 57 additions & 40 deletions

File tree

.github/workflows/ci.yml

Lines changed: 51 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,65 @@ jobs:
1111
node-version: [18.x, 20.x]
1212

1313
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
with:
17+
path: src
1618

17-
- name: Setup Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: ${{ matrix.node-version }}
21-
cache: 'npm'
19+
- name: Setup Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: npm
24+
cache-dependency-path: src/package-lock.json
2225

23-
- name: Install dependencies
24-
run: npm ci
26+
- name: Install dependencies
27+
working-directory: src
28+
run: npm ci
2529

26-
- name: Run linting
27-
run: npm run lint
30+
- name: Run linting
31+
working-directory: src
32+
run: npm run lint
2833

29-
- name: Compile TypeScript
30-
run: npm run compile
34+
- name: Compile TypeScript
35+
working-directory: src
36+
run: npm run compile
3137

32-
- name: Run tests
33-
uses: coactions/setup-xvfb@v1
34-
with:
35-
run: npm test
38+
- name: Run tests
39+
uses: coactions/setup-xvfb@v1
40+
with:
41+
run: npm test
42+
working-directory: src
3643

3744
package:
3845
runs-on: ubuntu-latest
3946
needs: test
4047

4148
steps:
42-
- name: Checkout code
43-
uses: actions/checkout@v4
44-
45-
- name: Setup Node.js
46-
uses: actions/setup-node@v4
47-
with:
48-
node-version: '20.x'
49-
cache: 'npm'
50-
51-
- name: Install dependencies
52-
run: npm ci
53-
54-
- name: Package extension
55-
run: |
56-
npm install -g @vscode/vsce
57-
vsce package
58-
59-
- name: Upload VSIX artifact
60-
uses: actions/upload-artifact@v4
61-
with:
62-
name: vscode-extension
63-
path: '*.vsix'
49+
- name: Checkout code
50+
uses: actions/checkout@v4
51+
with:
52+
path: src
53+
54+
- name: Setup Node.js
55+
uses: actions/setup-node@v4
56+
with:
57+
node-version: '20.x'
58+
cache: npm
59+
cache-dependency-path: src/package-lock.json
60+
61+
- name: Install dependencies
62+
working-directory: src
63+
run: npm ci
64+
65+
- name: Package extension
66+
working-directory: src
67+
run: |
68+
npm install -g @vscode/vsce
69+
vsce package
70+
71+
- name: Upload VSIX artifact
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: vscode-extension
75+
path: src/*.vsix

.vscode-test.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ import { defineConfig } from '@vscode/test-cli';
22

33
export default defineConfig({
44
files: 'out/test/**/*.test.js',
5-
});
5+
6+
launchArgs: [
7+
'--user-data-dir',
8+
'/tmp/vscode-test'
9+
]
10+
});

0 commit comments

Comments
 (0)