Skip to content

Release 1.0.0

Release 1.0.0 #25

Workflow file for this run

name: Acceptance tests
on:
- push
env:
ADDON_NAME: "@plonegovbr/volto-network-block"
ADDON_PATH: "volto-network-block"
jobs:
meta:
runs-on: ubuntu-latest
outputs:
VOLTO_VERSION: ${{ steps.vars.outputs.VOLTO_VERSION }}
CURRENT_DIR: ${{ steps.vars.outputs.CURRENT_DIR }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Vars
id: vars
run: |
echo "VOLTO_VERSION=`python .github/helper.py volto_version`" >> $GITHUB_OUTPUT
echo "CURRENT_DIR=`pwd`" >> $GITHUB_OUTPUT
acceptance:
runs-on: ubuntu-latest
needs:
- meta
env:
CURRENT_DIR: ${{ needs.meta.outputs.CURRENT_DIR }}
VOLTO_VERSION: ${{ needs.meta.outputs.VOLTO_VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Cypress
run: |
cd acceptance
yarn
- name: "Cypress: Acceptance tests"
uses: cypress-io/github-action@v5
env:
BABEL_ENV: production
CYPRESS_RETRIES: 2
CYPRESS_DEFAULT_COMMAND_TIMEOUT: 10000
with:
parallel: false
browser: chrome
working-directory: acceptance
spec: cypress/tests/*.js
install: false
start: |
docker compose -f docker-compose.yml --profile prod up
wait-on: 'npx wait-on --httpTimeout 20000 http-get://localhost:55001/plone http://localhost:3000'
# Upload Cypress screenshots
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots-acceptance
path: acceptance/cypress/screenshots
# Upload Cypress videos
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-videos-acceptance
path: acceptance/cypress/videos