Skip to content

Commit 179d988

Browse files
authored
Update ci.yml
jobs failed due to Unix domain socket path becoming too long
1 parent 9945b66 commit 179d988

1 file changed

Lines changed: 50 additions & 39 deletions

File tree

.github/workflows/ci.yml

Lines changed: 50 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,53 +11,64 @@ 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: cd src && npm test
3642

3743
package:
3844
runs-on: ubuntu-latest
3945
needs: test
4046

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

0 commit comments

Comments
 (0)