Skip to content

Commit

Permalink
Update grunt action
Browse files Browse the repository at this point in the history
Signed-off-by: Christos Sidiropoulos <[email protected]>
  • Loading branch information
csidirop committed Nov 22, 2023
1 parent 3c973d0 commit 32b02dd
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/npm-grunt.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NodeJS with Grunt
name: GruntComparison

on:
workflow_dispatch:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:

strategy:
matrix:
node-version: [12.x, 14.x]
node-version: [12.x]

steps:
- name: Checkout
Expand All @@ -53,26 +53,14 @@ jobs:
grunt less
echo "Running `grunt terser`"
grunt terser
echo ls -la
- name: test
- name: Test for changes
working-directory: ./
run: |
git diff -- ./Resources/Public/
if [ -n "$(git status --porcelain -- ./Resources/Public/)" ]; then
echo "There are changes"
echo "Changes in compilated files detected"
exit 1
else
echo "No changes"
echo "No changes in compilated files detected"
fi
# - name: Check if files were created
# run: |
# if [ -f ./Build/less.css ] && [ -f ./Build/terser.js ]; then
# echo "Files were created"
# exit 1
# else
# echo "Files were not created"
# exit 2
# fi

0 comments on commit 32b02dd

Please sign in to comment.