Skip to content

Commit

Permalink
update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrb committed Apr 4, 2024
1 parent 66017f3 commit 0715023
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
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: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, mysql
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Start Apache
run: sudo service apache2 start
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
start: npm start
wait-on: 'http://localhost'
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: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
extensions: mbstring, mysql
coverage: xdebug
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: Start Apache
run: sudo service apache2 start
- name: Run Cypress tests
uses: cypress-io/github-action@v2
with:
start: npm start
wait-on: "http://localhost"

0 comments on commit 0715023

Please sign in to comment.