Skip to content

Commit

Permalink
introduce simple cypress test run config
Browse files Browse the repository at this point in the history
  • Loading branch information
ettorepuccetti committed Jul 26, 2023
1 parent 6f77a77 commit 3892fdf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/cypress-testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Cypress CI with GitHub Actions
run-name: ${{ github.actor }} is testing with cypress
on: [push]
jobs:
mysql-in-docker-and-cypress:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: terrarossa
ports:
# - 32574:3306
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Cypress run
uses: cypress-io/github-action@v5
with:
build: npm run build
start: npm start
browser: chrome

16 changes: 0 additions & 16 deletions .github/workflows/prova-gh-action.yml

This file was deleted.

0 comments on commit 3892fdf

Please sign in to comment.