-
-
Notifications
You must be signed in to change notification settings - Fork 190
28 lines (28 loc) · 828 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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: Output Docker logs
run: docker logs $(docker ps -q --filter ancestor=cloudlog)
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
browser: edge
headless: true
wait-on: "http://localhost"