File tree 5 files changed +30
-7
lines changed
5 files changed +30
-7
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -e
4
+
5
+ pushd dynamic-demo-plugin
6
+ yarn install
7
+ yarn run build
8
+ popd
Original file line number Diff line number Diff line change 4
4
5
5
./build-backend.sh
6
6
./build-frontend.sh
7
+ ./build-demos.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ pushd dynamic-demo-plugin
6
+
7
+ # Check for outdated yarn.lock file
8
+ if [[ -n " $( git status --porcelain -- yarn.lock) " ]]; then
9
+ echo " Outdated yarn.lock file, commit changes to fix!"
10
+ git --no-pager diff
11
+ exit 1
12
+ fi
13
+
14
+ popd
Original file line number Diff line number Diff line change @@ -8,27 +8,26 @@ ARTIFACT_DIR=${ARTIFACT_DIR:=/tmp/artifacts}
8
8
9
9
cd frontend
10
10
11
- # Fail fast if generated artifacts are out of sync
12
-
13
- if git status --short | grep ' yarn.lock' > /dev/null; then
14
- printf " \n\nOUTDATED yarn.lock (COMMIT IT TO FIX!!!!!)\n"
15
- git diff
11
+ # Check for outdated yarn.lock file
12
+ if [[ -n " $( git status --porcelain -- yarn.lock) " ]]; then
13
+ echo " Outdated yarn.lock file, commit changes to fix!"
14
+ git --no-pager diff
16
15
exit 1
17
16
fi
18
17
19
18
# Dynamic plugin SDK docs are generated as part of the build, check for changes
20
19
GIT_STATUS=" $( git status --short --untracked-files -- packages/console-dynamic-plugin-sdk/docs) "
21
20
if [ -n " $GIT_STATUS " ]; then
22
21
echo " dynamic plugin sdk docs are not up to date. Run 'yarn generate-plugin-sdk-docs' then commit changes."
23
- git diff
22
+ git --no-pager diff
24
23
exit 1
25
24
fi
26
25
27
26
yarn i18n
28
27
GIT_STATUS=" $( git status --short --untracked-files -- public/locales packages/** /locales) "
29
28
if [ -n " $GIT_STATUS " ]; then
30
29
echo " i18n files are not up to date. Run 'yarn i18n' then commit changes."
31
- git diff
30
+ git --no-pager diff
32
31
exit 1
33
32
fi
34
33
Original file line number Diff line number Diff line change 4
4
5
5
./test-backend.sh
6
6
./test-frontend.sh
7
+ ./test-demos.sh
You can’t perform that action at this time.
0 commit comments