Skip to content

Commit 31d6ac4

Browse files
committed
wip
1 parent 443ab69 commit 31d6ac4

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,41 @@ jobs:
1919

2020
steps:
2121
- 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+
2239
- uses: pnpm/action-setup@v4
2340
- uses: actions/setup-node@v4
2441
with:
2542
cache: 'pnpm'
2643
node-version: ${{ matrix.node-version }}
2744

2845
- name: Install dependencies
46+
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}
2947
run: pnpm install
3048

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
3452

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
3856

3957
- name: Run server tests
40-
working-directory: packages/tailwindcss-language-server
58+
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}/packages/tailwindcss-language-server
4159
run: pnpm run build && pnpm run test project-locator.test -t 'Sass files'

0 commit comments

Comments
 (0)