fix(ci): drop percy helper script

This commit is contained in:
Łukasz Mierzwa
2022-04-03 14:14:03 +01:00
committed by Łukasz Mierzwa
parent 927913a77e
commit 7944bf6534
2 changed files with 1 additions and 38 deletions

View File

@@ -390,7 +390,7 @@ jobs:
- name: Run Percy
if: steps.filter.outputs.percy == 'true'
run: ./scripts/percy-skip-deps.sh || make -C ui test-percy
run: make -C ui test-percy
env:
NODE_ENV: test
PERCY_TOKEN: ${{ secrets.PERCY_TOKEN }}

View File

@@ -1,37 +0,0 @@
#!/usr/bin/env bash
set -o errexit
set -o pipefail
if [ "${GITHUB_HEAD_REF_SLUG}" == "main" ]; then
RANGE="HEAD~.."
else
git fetch origin main
RANGE="FETCH_HEAD...${GITHUB_SHA}"
fi
git log --no-merges --name-only --pretty=format: ${RANGE} | grep -Ev '^$' | sort | uniq | while read FILE ; do
if [[ "${FILE}" =~ ^ui/src/.+ ]]; then
echo "[P] ${FILE}"
exit 1
elif [[ "${FILE}" =~ ^ui/.storybook/.+ ]]; then
echo "[P] ${FILE}"
exit 1
elif [[ "${FILE}" == "ui/package.json" ]]; then
echo "[?] ${FILE}"
git diff --no-prefix --diff-filter=M --unified=0 ${RANGE} -- ui/package.json | grep -E '^\+ ' | tr -d '":,' | while read I NAME VERSION ; do
if [[ "${NAME}" =~ ^@types/.+ ]]; then
echo "[S] ${NAME}: ${VERSION}"
else
echo "[P] ${NAME}: ${VERSION}"
exit 1
fi
done
else
echo "[ ] ${FILE}"
fi
done
exit 0