kopia lustrzana https://github.com/magicbug/Cloudlog
update main.yml
rodzic
66017f3b65
commit
07150231b8
|
@ -1,33 +1,33 @@
|
||||||
name: End-to-end tests
|
name: End-to-end tests
|
||||||
on: [pull_request]
|
on: [pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
cypress-run:
|
cypress-run:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
mysql:
|
mysql:
|
||||||
image: mysql:5.7
|
image: mysql:5.7
|
||||||
env:
|
env:
|
||||||
MYSQL_ROOT_PASSWORD: cloudlogpassword
|
MYSQL_ROOT_PASSWORD: cloudlogpassword
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 3306:3306
|
||||||
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '7.4'
|
php-version: "7.4"
|
||||||
extensions: mbstring, mysql
|
extensions: mbstring, mysql
|
||||||
coverage: xdebug
|
coverage: xdebug
|
||||||
- name: Validate composer.json and composer.lock
|
- name: Validate composer.json and composer.lock
|
||||||
run: composer validate
|
run: composer validate
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: composer install --prefer-dist --no-progress --no-suggest
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
- name: Start Apache
|
- name: Start Apache
|
||||||
run: sudo service apache2 start
|
run: sudo service apache2 start
|
||||||
- name: Run Cypress tests
|
- name: Run Cypress tests
|
||||||
uses: cypress-io/github-action@v2
|
uses: cypress-io/github-action@v2
|
||||||
with:
|
with:
|
||||||
start: npm start
|
start: npm start
|
||||||
wait-on: 'http://localhost'
|
wait-on: "http://localhost"
|
||||||
|
|
Ładowanie…
Reference in New Issue