On release tests run only critical paths (#2663)

* In old version release run small package of most important tests

* add to releases tests for stocks, warehouses and orders

* Update .github/workflows/tests-nightly.yml

Co-authored-by: Mika <6186720+NyanKiyoshi@users.noreply.github.com>

* remove set-output command

* Fix set tags step

* Fix for url in release

Co-authored-by: Mika <6186720+NyanKiyoshi@users.noreply.github.com>
This commit is contained in:
Karolina Rakoczy 2022-11-25 10:13:13 +01:00 committed by GitHub
parent 9ef4d4c6ee
commit c222657463
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View file

@ -54,7 +54,7 @@ program
if (!knownBug) {
failedNewTests.push({
title: testCase.titleParts[1],
url: issue.url,
url: issue.html_url,
spec: testCase.titleParts[0],
});
}

View file

@ -212,16 +212,18 @@ jobs:
- name: Set tag for tests
id: set-tag-for-tests
uses: actions/github-script@v6
env:
is_old_version: ${{ needs.get-environment-variables.outputs.is_old_version }}
old_version_test_tag: "@oldRelease"
new_version_test_tag: "@stable"
run: |
if [[ $is_old_version == "true" ]]; then
echo "TEST_TAG=$old_version_test_tag" >> $GITHUB_OUTPUT
else
echo "TEST_TAG=$new_version_test_tag" >> $GITHUB_OUTPUT
fi
with:
result-encoding: string
script: |
const { is_old_version } = process.env
if(is_old_version == "true"){
return "@oldRelease"
}else{
return "@stable"
}
- name: Cypress run - automatically
id: cypress