kopia lustrzana https://github.com/magicbug/Cloudlog
explicitly set config file
rodzic
19393dcbe2
commit
812674c49f
|
@ -3,23 +3,14 @@ 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
|
||||
- name: Build and run Docker compose
|
||||
run: |
|
||||
docker build -t cloudlog .
|
||||
docker run -d -p 80:80 cloudlog
|
||||
docker-compose up -d
|
||||
- name: Output Docker logs
|
||||
run: docker logs $(docker ps -q --filter ancestor=cloudlog)
|
||||
run: docker-compose logs
|
||||
- name: Run Cypress tests
|
||||
uses: cypress-io/github-action@v2
|
||||
with:
|
||||
|
|
Ładowanie…
Reference in New Issue