@@ -311,3 +311,78 @@ jobs:
311311 run : dart run test -p chrome -j 2
312312 env :
313313 CHROME_EXECUTABLE : chrome
314+
315+ sass_parser_tests :
316+ name : " sass-parser Tests | Dart ${{ matrix.dart_channel }} | Node ${{ matrix.node-version }}"
317+ runs-on : ubuntu-latest
318+
319+ strategy :
320+ fail-fast : false
321+ matrix :
322+ dart_channel : [stable]
323+ node-version : ['lts/*']
324+ include :
325+ # Test older LTS versions
326+ #
327+ # TODO: Test on lts/-2 and lts/-3 once they support
328+ # `structuredClone()` (that is, once they're v18 or later).
329+ - os : ubuntu-latest
330+ dart_channel : stable
331+ node-version : lts/-1
332+ # Test LTS version with dart dev channel
333+ - os : ubuntu-latest
334+ dart_channel : dev
335+ node-version : ' lts/*'
336+
337+ steps :
338+ - uses : actions/checkout@v4
339+ - uses : ./.github/util/initialize
340+ with :
341+ dart-sdk : ${{ matrix.dart_channel }}
342+ github-token : ${{ github.token }}
343+ node-version : ${{ matrix.node-version }}
344+
345+ - run : dart run grinder pkg-npm-dev
346+ env : {UPDATE_SASS_SASS_REPO: false}
347+ - run : npm install
348+ working-directory : pkg/sass-parser/
349+ - name : Run tests
350+ run : npm test
351+ working-directory : pkg/sass-parser/
352+
353+ sass_parser_static_analysis :
354+ name : " sass-parser Static Analysis"
355+ runs-on : ubuntu-latest
356+
357+ steps :
358+ - uses : actions/checkout@v4
359+ - uses : actions/setup-node@v4
360+ with : {node-version: 'lts/*'}
361+ - uses : ./.github/util/initialize
362+ with : {github-token: "${{ github.token }}"}
363+
364+ - run : dart run grinder pkg-npm-dev
365+ env : {UPDATE_SASS_SASS_REPO: false}
366+ - run : npm install
367+ working-directory : build/npm/
368+ - run : npm install
369+ working-directory : pkg/sass-parser/
370+ - name : Run static analysis
371+ run : npm run check
372+ working-directory : pkg/sass-parser/
373+
374+ # TODO - postcss/postcss#1958: Enable this once PostCSS doesn't have TypeDoc
375+ # warnings.
376+
377+ # sass_parser_typedoc:
378+ # name: "sass-parser Typedoc"
379+ # runs-on: ubuntu-latest
380+ #
381+ # steps:
382+ # - uses: actions/checkout@v4
383+ # - uses: actions/setup-node@v4
384+ # with: {node-version: 'lts/*'}
385+ # - run: npm install
386+ # working-directory: pkg/sass-parser/
387+ # - run: npm run typedoc
388+ # working-directory: pkg/sass-parser/
0 commit comments