-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
956ebca
commit d136d80
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Sass | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
sass: | ||
name: Dart Sass ${{ matrix.package-version }} (Node.js ${{ matrix.node-version }}) | ||
runs-on: ubuntu-22.04 | ||
|
||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
package-version: | ||
# Release without major deprecations | ||
- 1.77.6 | ||
|
||
# Release with `mixed-decls` deprecated | ||
- 1.77.7 | ||
|
||
# Release with `import` deprecated | ||
- 1.80.0 | ||
|
||
# Dart Sass latest major version | ||
- 1.x | ||
|
||
node-version: | ||
- 20 | ||
- 22 | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: npm | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install package | ||
run: | | ||
npm install -g sass@${{ matrix.package-version }} | ||
sass --version | ||
- name: Check Sass | ||
run: time sass packages/nhsuk.scss > /dev/null | ||
|
||
- name: Check Sass '@import' syntax | ||
run: time sh -c 'echo "@import "\""nhsuk"\"";" | sass --stdin --load-path packages > /dev/null' | ||
|
||
- name: Check Sass '@use' syntax | ||
run: time sh -c 'echo "@use "\""nhsuk"\"" as *;" | sass --stdin --load-path packages > /dev/null' |