Files
karma/scripts/ci-diff-webpack.sh
Łukasz Mierzwa 70e5b23d82 fix(ci): fix paths
2023-12-01 10:09:40 +00:00

18 lines
380 B
Bash
Executable File

#!/usr/bin/env bash
set -o errexit
set -o pipefail
git fetch origin main
git reset --hard FETCH_HEAD
make -C ui dist/stats.json
mv ui/dist/stats.json main.json
make clean
git reset --hard ${GITHUB_SHA}
make -C ui dist/stats.json
./scripts/cra-bundle-stats-diff.py main.json ui/dist/stats.json | tee diff.html
./scripts/pr-comment.py "Webpack bundle size diff" diff.html html