Skip to content

Use Namespace for CI workflows #223

Use Namespace for CI workflows

Use Namespace for CI workflows #223

Workflow file for this run

name: Run Tests
on:
pull_request:
branches:
- main
jobs:
tests:
strategy:
fail-fast: false
matrix:
# node: [18, 20, 22, 24]
# os: [ubuntu-latest, macos-latest, windows-latest]
node: [24]
os: [windows-latest]
runs-on: ${{ matrix.os }}
name: Run Tests - Node v${{ matrix.node }} / ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
# On windows we need to setup a Dev Drive as Windows I/O has become ~10x
# slower in Github Actions since it started putting stuff in C: instead
# of D: like it used to
- uses: samypr100/setup-dev-drive@v3
if: ${{ matrix.os == 'windows-latest' }}
with:
workspace-copy: true
drive-size: 2GB
# For non-windows we still want to use the `DEV_DRIVE_WORKSPACE` env var
# even though we don't actually have a dev drive set up. This makes
# writing the jobs below simpler
- name: Set DEV_DRIVE_WORKSPACE
if: ${{ matrix.os != 'windows-latest' }}
run: echo "DEV_DRIVE_WORKSPACE=${{ github.workspace }}" >> $GITHUB_ENV
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
- name: Install dependencies
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}
run: pnpm install
- name: wip
if: ${{ matrix.os == 'windows-latest' }}
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}
run: ls packages/tailwindcss-language-syntax/node_modules/dedent
- name: Run syntax tests
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}/packages/tailwindcss-language-syntax
run: pnpm run build && pnpm run test
- name: Run service tests
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}/packages/tailwindcss-language-service
run: pnpm run build && pnpm run test
- name: Run server tests
working-directory: ${{ env.DEV_DRIVE_WORKSPACE }}/packages/tailwindcss-language-server
run: pnpm run build && pnpm run test project-locator.test -t 'Sass files'