CakePHP 5 #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [pull_request] | |
jobs: | |
build: | |
name: Docker Build | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Env Files | |
run: | | |
cp .docker/php.env.development .docker/php.env | |
cp .docker/mysql.env.development .docker/mysql.env | |
- name: Pull images | |
run: docker compose pull | |
- name: Build | |
run: docker-compose build --build-arg UID=$(id -u) --build-arg ENV=dev | |
- name: Start | |
run: docker compose up -d | |
- name: Wait for services | |
run: sleep 10 | |
- name: Check CakePHP Welcome Page | |
run: curl -f -v -o /dev/null http://localhost:8080 | |
- name: Check NGINX Files | |
run: curl -f -v -o /dev/null http://localhost:8080/css/home.css |