switching the build back to windows because of the karma testing. Moving the locales-testing to a previous job
This commit is contained in:
parent
626da7d506
commit
0eece35746
|
@ -41,27 +41,13 @@ jobs:
|
||||||
echo "::set-output name=repo_url::$repo_url"
|
echo "::set-output name=repo_url::$repo_url"
|
||||||
echo "::set-output name=adj_build_number::$adj_build_num"
|
echo "::set-output name=adj_build_number::$adj_build_num"
|
||||||
|
|
||||||
|
locales-test:
|
||||||
browser:
|
runs-on: ubunut-latest
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: setup
|
needs: setup
|
||||||
env:
|
|
||||||
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
|
||||||
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up Node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: '14.x'
|
|
||||||
|
|
||||||
- name: Print environment
|
|
||||||
run: |
|
|
||||||
node --version
|
|
||||||
npm --version
|
|
||||||
|
|
||||||
- name: Testing locale lengths
|
- name: Testing locale lengths
|
||||||
run: |
|
run: |
|
||||||
errors=0
|
errors=0
|
||||||
|
@ -83,6 +69,26 @@ jobs:
|
||||||
echo "Test passed"
|
echo "Test passed"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [ setup, locales-test ]
|
||||||
|
env:
|
||||||
|
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
||||||
|
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '14.x'
|
||||||
|
|
||||||
|
- name: Print environment
|
||||||
|
run: |
|
||||||
|
node --version
|
||||||
|
npm --version
|
||||||
|
|
||||||
- name: npm setup & test
|
- name: npm setup & test
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|
|
@ -64,9 +64,38 @@ jobs:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
|
||||||
browser:
|
locales-test:
|
||||||
runs-on: windows-latest
|
runs-on: ubunut-latest
|
||||||
needs: setup
|
needs: setup
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Testing locale lengths
|
||||||
|
run: |
|
||||||
|
errors=0
|
||||||
|
echo "Testing locales extName lengths"
|
||||||
|
echo "All must be 40 or less for Safari"
|
||||||
|
echo "================================="
|
||||||
|
for file in $(ls src/_locales/);
|
||||||
|
do
|
||||||
|
test_string=$(cat src/_locales/$file/messages.json | jq .extName.message | tr -d '"')
|
||||||
|
if [[ ${#test_string} -gt 40 ]]; then
|
||||||
|
echo $file: ${#test_string}
|
||||||
|
errors=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ $errors -eq 1 ]]; then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Test passed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
build:
|
||||||
|
runs-on: windows-latest
|
||||||
|
needs: [ setup, locales-test ]
|
||||||
env:
|
env:
|
||||||
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
REPO_URL: ${{ needs.setup.outputs.repo_url }}
|
||||||
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
||||||
|
@ -90,41 +119,20 @@ jobs:
|
||||||
npm run dist
|
npm run dist
|
||||||
npm run test
|
npm run test
|
||||||
|
|
||||||
- name: Testing locale lengths
|
|
||||||
run: |
|
|
||||||
errors=0
|
|
||||||
echo "Testing locales extName lengths"
|
|
||||||
echo "All must be 40 or less for Safari"
|
|
||||||
echo "================================="
|
|
||||||
for file in $(ls src/_locales/);
|
|
||||||
do
|
|
||||||
test_string=$(cat src/_locales/$file/messages.json | jq .extName.message | tr -d '"')
|
|
||||||
if [[ ${#test_string} -gt 40 ]]; then
|
|
||||||
echo $file: ${#test_string}
|
|
||||||
errors=1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [[ $errors -eq 1 ]]; then
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "Test passed"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: gulp
|
- name: gulp
|
||||||
run: gulp ci
|
run: gulp ci
|
||||||
|
|
||||||
- name: Build sources for reviewers
|
- name: Build sources for reviewers
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
mkdir dist\Source
|
mkdir dist/Source
|
||||||
call git clone %REPO_URL% dist\Source
|
git clone $REPO_URL dist/Source
|
||||||
cd dist\Source
|
cd dist/Source
|
||||||
call git checkout %GITHUB_SHA%
|
git checkout $GITHUB_SHA
|
||||||
call git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
cd ../
|
cd ../
|
||||||
del /S/Q "Source\.git\objects\pack\*"
|
rm -rf Source/.git/objects/pack/*
|
||||||
call 7z a browser-source-%BUILD_NUMBER%.zip "Source\*"
|
zip -r browser-source-$BUILD_NUMBER.zip Source/*
|
||||||
|
|
||||||
- name: upload opera release asset
|
- name: upload opera release asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
|
|
Loading…
Reference in New Issue