Skip to content

Commit

Permalink
Update github actions for e2etests
Browse files Browse the repository at this point in the history
  • Loading branch information
genie9 committed May 30, 2022
1 parent 3b143f1 commit d920c39
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/e2etests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ jobs:
npm run build --production
- name: Set up branch
run: |
BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
if [[ $BRANCH == master ]]; then
if [[ github.base_ref == master ]]; then
echo "VERSION=master" >> $GITHUB_ENV
else
echo "VERSION=develop" >> $GITHUB_ENV
Expand All @@ -41,15 +40,15 @@ jobs:
browser: ${{ matrix.browser }}
headless: true
env: port=5430
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
retention-days: 5
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: failure()
with:
with:
name: cypress-videos
path: cypress/videos
retention-days: 5

0 comments on commit d920c39

Please sign in to comment.