Skip to content

Commit 681d380

Browse files
authored
add tgz-check shellscript (#3361)
1 parent 4965439 commit 681d380

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- run: yarn --frozen-lockfile
3737
- run: yarn lint
3838
- run: yarn audit:ci
39+
- run: yarn test:tgz-check
3940
- run: NODE_OPTIONS=--max_old_space_size=20480 yarn test:unit --forceExit --silent
4041
all-jobs-pass:
4142
name: All jobs pass

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"test:e2e": "yarn test:e2e:ios && yarn test:e2e:android",
4040
"test:e2e:ios": "detox build -c ios.sim.release && detox test -c ios.sim.release --record-videos failing",
4141
"test:e2e:android": "detox build -c android.emu.release && detox test -c android.emu.release --record-videos failing",
42+
"test:tgz-check": "./scripts/tgz-check.sh",
4243
"postinstall": "./scripts/postinstall.sh",
4344
"sourcemaps:android": "node_modules/.bin/react-native bundle --platform android --entry-file index.js --dev false --reset-cache --bundle-output /tmp/bundle.android.js --assets-dest /tmp/ --sourcemap-output sourcemaps/android/index.js.map",
4445
"sourcemaps:ios": "node_modules/.bin/react-native bundle --platform ios --entry-file index.js --dev false --reset-cache --bundle-output /tmp/bundle.ios.js --assets-dest /tmp/ --sourcemap-output sourcemaps/ios/index.js.map",

scripts/tgz-check.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
if [[ $(ls | grep .tgz) ]]; then
3+
echo "✘ there is a tgz file! you'll want to delete this before you can merge"
4+
exit 1
5+
else
6+
echo "✔ no tgz file found"
7+
exit 0
8+
fi

0 commit comments

Comments
 (0)