-
Notifications
You must be signed in to change notification settings - Fork 1.9k
58 lines (48 loc) · 1.28 KB
/
test-scss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: SCSS Compilation
on:
pull_request:
branches:
- 'develop'
- '4.*'
paths:
- '**.scss'
- '**.css'
- '.github/workflows/test-scss.yml'
push:
branches:
- 'develop'
- '4.*'
paths:
- '**.scss'
- '**.css'
- '.github/workflows/test-scss.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
name: Compilation of SCSS (Dart Sass)
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/[email protected]
with:
# node version based on dart-sass test workflow
node-version: 16
- name: Install Dart Sass
run: |
npm install --global sass
sass --version
- name: Run Dart Sass
run: sass --no-source-map admin/css/debug-toolbar/toolbar.scss system/Debug/Toolbar/Views/toolbar.css
- name: Check for changed CSS files
run: |
if [[ -n "$(git status --porcelain 2>/dev/null)" ]]; then
echo "Your changes to the SCSS files did not match the expected CSS output."
git diff-files --patch
exit 1
fi