Skip to content

Commit

Permalink
Issue #18: Update GitHub CI workflow to use symfony server.
Browse files Browse the repository at this point in the history
  • Loading branch information
geerlingguy committed Mar 10, 2020
1 parent eb431d9 commit af27302
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,11 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
tools: symfony

- name: Install dependencies
run: composer install

- name: Build container
run: docker build -t jeffgeerling-com:latest .

- name: Start Docker environment
run: docker-compose up -d

Expand All @@ -43,15 +41,15 @@ jobs:
sleep 1
done
# Note: -T option required to avoid creating pseudo-TTY.
- name: Start local web server.
run: symfony serve --no-tls -d

- name: Install Drupal
run: >-
docker-compose exec -T drupal bash -c 'drush site:install minimal
--db-url="mysql://drupal:drupal@mysql/drupal"
--site-name="Jeff Geerling" --existing-config -y'
env:
COMPOSE_INTERACTIVE_NO_CLI: '1'
./vendor/bin/drush site:install minimal
--db-url="mysql://drupal:drupal@127.0.0.1/drupal"
--site-name="Jeff Geerling" --existing-config -y
- name: Test loading the home page.
run: >
curl -s http://localhost/ | grep "Jeff Geerling"
curl -s http://localhost:8000/ | grep "Jeff Geerling"

0 comments on commit af27302

Please sign in to comment.