Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Add functional tests #6

Add functional tests

Add functional tests #6

Workflow file for this run

name: Volto Add-on Cookiecutter CI
on:
push:
paths:
- "volto_addon/**"
- ".github/workflows/volto_addon.yml"
workflow_dispatch:
jobs:
generation:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
# git checkout
- name: Checkout codebase
uses: actions/checkout@v4
# python setup
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
# python install
- name: Install dependencies
run: |
pip install -r requirements.txt
# Test
- name: Run tests
run: |
cd volto_addon
python -m pytest tests
functional:

Check failure on line 48 in .github/workflows/volto_addon.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/volto_addon.yml

Invalid workflow file

You have an error in your yaml syntax on line 48
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Generate
working-directory: volto_addon
run: |
make generate
- name: Install generated package
working-directory: volto_addon
run: |
make install
- name: Start Servers
uses: JarvusInnovations/background-action@v1
working-directory: volto_addon
with:
run: |
make start-test-acceptance-server-ci &
make start-test-acceptance-frontend &
# your step-level and job-level environment variables are available to your commands as-is
# npm install will count towards the wait-for timeout
# whenever possible, move unrelated scripts to a different step
# to background multiple processes: add & to the end of the command
wait-on: |
http-get://localhost:8080/Plone
http://localhost:3000
# IMPORTANT: to use environment variables in wait-on, you must use this form: ${{ env.VAR }}
# See wait-on section below for all resource types and prefixes
tail: true # true = stderr,stdout
# This will allow you to monitor the progress live
log-output-resume: stderr
# Eliminates previosuly output stderr log entries from post-run output
wait-for: 10m
log-output: stderr,stdout # same as true
log-output-if: failure
- name: Run acceptance tests
working-directory: volto_addon
run: |
make test-acceptance-headless
- name: Run unit tests
working-directory: volto_addon
run: |
make test-ci
- name: Run i18n tests
working-directory: volto_addon
run: |
make i18n
- name: Run linting
working-directory: volto_addon
run: |
make lint
- name: Run formatting
working-directory: volto_addon
run: |
make format
- name: Run Storybook
working-directory: volto_addon
run: |
make storybook-build