Merge pull request #299 from slub/revert-291-update-packages #113
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: GruntComparison | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
cache-dependency-path: './Build/package-lock.json' | |
- name: Install and run Grunt | |
working-directory: ./Build | |
run: | | |
npm install -g grunt-cli | |
npm audit fix | |
echo "Running `grunt less`" | |
grunt less | |
echo "Running `grunt terser`" | |
grunt terser | |
- name: Test for changes | |
working-directory: ./ | |
run: | | |
git diff -- ./Resources/Public/ | |
if [ -n "$(git status --porcelain -- ./Resources/Public/)" ]; then | |
echo "Changes detected in compiled files" | |
exit 1 | |
else | |
echo "No changes detected in compiled files" | |
fi |