@@ -19,23 +19,41 @@ jobs:
19
19
20
20
steps :
21
21
- uses : actions/checkout@v4
22
+
23
+ # On windows we need to setup a Dev Drive as Windows I/O has become ~10x
24
+ # slower in Github Actions since it started putting stuff in C: instead
25
+ # of D: like it used to
26
+ - uses : samypr100/setup-dev-drive@v3
27
+ if : ${{ matrix.os == 'windows-latest' }}
28
+ with :
29
+ workspace-copy : true
30
+ drive-size : 2GB
31
+
32
+ # For non-windows we still want to use the `DEV_DRIVE_WORKSPACE` env var
33
+ # even though we don't actually have a dev drive set up. This makes
34
+ # writing the jobs below simpler
35
+ - name : Set DEV_DRIVE_WORKSPACE
36
+ if : ${{ matrix.os != 'windows-latest' }}
37
+ run : echo "DEV_DRIVE_WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV
38
+
22
39
- uses : pnpm/action-setup@v4
23
40
- uses : actions/setup-node@v4
24
41
with :
25
42
cache : ' pnpm'
26
43
node-version : ${{ matrix.node-version }}
27
44
28
45
- name : Install dependencies
46
+ working-directory : ${{ env.DEV_DRIVE_WORKSPACE }}
29
47
run : pnpm install
30
48
31
- # - name: Run syntax tests
32
- # working-directory: packages/tailwindcss-language-syntax
33
- # run: pnpm run build && pnpm run test
49
+ - name : Run syntax tests
50
+ working-directory : ${{ env.DEV_DRIVE_WORKSPACE }}/ packages/tailwindcss-language-syntax
51
+ run : pnpm run build && pnpm run test
34
52
35
- # - name: Run service tests
36
- # working-directory: packages/tailwindcss-language-service
37
- # run: pnpm run build && pnpm run test
53
+ - name : Run service tests
54
+ working-directory : ${{ env.DEV_DRIVE_WORKSPACE }}/ packages/tailwindcss-language-service
55
+ run : pnpm run build && pnpm run test
38
56
39
57
- name : Run server tests
40
- working-directory : packages/tailwindcss-language-server
58
+ working-directory : ${{ env.DEV_DRIVE_WORKSPACE }}/ packages/tailwindcss-language-server
41
59
run : pnpm run build && pnpm run test project-locator.test -t 'Sass files'
0 commit comments