mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(ci): drop percy helper script
This commit is contained in:
committed by
Łukasz Mierzwa
parent
927913a77e
commit
7944bf6534
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user