Add CI testing matrix #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Tests | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
node: [18, 20, 22] | |
os: [ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
name: Run Tests on Node v${{ matrix.node }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: 'npm' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: > | |
cd packages/tailwindcss-language-server && | |
npm run build && | |
npm run test:prepare && | |
npm test |