1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02:00

Ensure that firefox linting of beta builds only happens on beta build… (#18403)

* Ensure that firefox linting of beta builds only happens on beta build commits

* Fix script
This commit is contained in:
Dan J Miller 2023-04-03 03:41:06 -07:00 committed by PeterYinusa
parent 3af0362f2e
commit 04716e87f4
2 changed files with 30 additions and 8 deletions

View File

@ -1157,14 +1157,9 @@ jobs:
- attach_workspace:
at: .
- run:
name: Move beta build to dist
command: mv ./dist-beta ./dist
- run:
name: Move beta zips to builds
command: mv ./builds-beta ./builds
- run:
name: test:mozilla-lint
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint
name: Lint beta for firefox
command: |
.circleci/scripts/mozilla-lint-beta.sh
test-mozilla-lint-desktop:
executor: node-browsers

View File

@ -0,0 +1,27 @@
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
current_commit_msg=$(git show -s --format='%s' HEAD)
if [[ $current_commit_msg =~ Version[[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+[-]beta.[[:digit:]]) ]]
then
# filter the commit message like Version v10.24.1-beta.1
printf '%s\n' "Linting beta builds for firefox"
# Move beta build to dist
mv ./dist-beta ./dist
# Move beta zips to builds
mv ./builds-beta ./builds
# test:mozilla-lint
export NODE_OPTIONS='--max_old_space_size=3072'
yarn mozilla-lint
else
printf '%s\n' 'Commit message does not match commit message for beta pattern; skipping linting for firefox'
mkdir dist
mkdir builds
exit 0
fi
exit 0