Skip to content

Test pipeline

Test pipeline #11

Workflow file for this run

name: End-to-end tests
on: [pull_request]
jobs:
cypress-run:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: cloudlogpassword
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and run Docker image
run: |
docker build -t cloudlog .
docker run -d -p 80:80 cloudlog
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
browser: edge
headless: true
wait-on: "http://localhost"