Skip to content

Commit

Permalink
no recompile in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 28, 2024
1 parent 3afa998 commit 983ab2c
Showing 1 changed file with 1 addition and 59 deletions.
60 changes: 1 addition & 59 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,62 +163,6 @@ jobs:
restore-keys: |
${{ runner.os }}-composer-
- name: Install JS dependencies (only for coverage or Chrome Slow)
if: env.LOG_COVERAGE || matrix.type == 'Chrome Slow'
run: |
if [ -n "$LOG_COVERAGE" ]; then
(cd js && npm install --package-lock-only --save-dev babel-plugin-istanbul nyc && npm ci --loglevel=error)
else
mv public public.orig
mkdir public public/css public/external
cp public.orig/.gitattributes public
cp public.orig/.gitignore public
cp public.orig/logo.png public
cp public.orig/css/agileui.less public/css
cp public.orig/external/.gitignore public/external
cp public.orig/external/package.json public/external
cp public.orig/external/package-lock.json public/external
cp public.orig/external/postinstall.js public/external
npm install --loglevel=error -g pug-cli less less-plugin-clean-css uglify-js
(cd js && npm ci --loglevel=error)
(cd public/external && npm ci --loglevel=error && git clean -dxfq .)
fi
- name: Lint JS files (only for Chrome Slow)
if: matrix.type == 'Chrome Slow'
run: |
cp public/external/postinstall.js js
(cd js && npm run lint)
- name: Compile HTML files (only for Chrome Slow)
if: matrix.type == 'Chrome Slow'
run: |
cp -r template template.orig
find template -not -type d -not -name '*.pug' -delete
(cd template && pug --doctype html --pretty --silent .)
- name: Compile CSS files (only for Chrome Slow)
if: matrix.type == 'Chrome Slow'
run: |
lessc public/css/agileui.less public/css/agileui.min.css --clean-css="--s1 --advanced" --source-map
- name: Compile JS files (only for coverage or Chrome Slow)
if: env.LOG_COVERAGE || matrix.type == 'Chrome Slow'
run: |
if [ -n "$LOG_COVERAGE" ]; then
rm -r public/js
(cd js && ISTANBUL_COVERAGE=1 npm run build)
else
(cd js && npm run build)
fi
- name: Diff compiled files (only for Chrome Slow)
if: matrix.type == 'Chrome Slow'
run: |
diff -ru public.orig public
diff -ru template.orig template
rm -r public.orig template.orig
- name: Install PHP dependencies
run: |
composer remove --no-interaction --no-update phpunit/phpunit ergebnis/phpunit-slow-test-detector --dev
Expand Down Expand Up @@ -260,8 +204,6 @@ jobs:
ls -lah coverage/js
ls -l coverage | wc -l
echo xxx1
php -d memory_limit=2G vendor/bin/phpcov merge coverage/ --clover coverage/merged.xml
echo xxx2
- name: bbb
uses: actions/upload-artifact@v4
Expand All @@ -286,4 +228,4 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
files: coverage/merged.xml,coverage/js/clover.xml
files: coverage/js/clover.xml

0 comments on commit 983ab2c

Please sign in to comment.