mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3.0.0 to 4.0.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3.0.0...v4.0.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
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/setup-node@v4.0.0
|
|
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
|