Skip to content

Commit

Permalink
Merge pull request #255 from drevops/feature/github-actions
Browse files Browse the repository at this point in the history
[#254] Replaced Travis with GitHub actions.
  • Loading branch information
jhedstrom authored Nov 23, 2022
2 parents d60daee + 805be2f commit 55af647
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 12 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: ci
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ["7.4", "8.0", "8.1"]
drupal_version: ["9"]
exclude:
- php_version: "7.4"
drupal_version: "10"
- php_version: "8.0"
drupal_version: "10"
env:
PHP_VERSION: ${{ matrix.php_version }}
DRUPAL_VERSION: ${{ matrix.drupal_version }}
DOCKER_USER_ID: "1001"
steps:
- name: clone
uses: actions/checkout@v3
- name: docker-compose up -d
run: docker-compose up -d
- name: composer self-update
run: docker-compose exec -T php composer self-update
- name: composer require
run: docker-compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/core:^${DRUPAL_VERSION}
- name: composer install
run: docker-compose exec -T php composer install
- name: composer test
run: docker-compose exec -T php composer test
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

17 changes: 17 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
version: "2"
services:

php:
image: wodby/drupal-php:${PHP_VERSION}
environment:
PHP_FPM_USER: wodby
PHP_FPM_GROUP: wodby
PHP_FPM_CLEAR_ENV: "yes"
PHP_OPCACHE_PRELOAD_USER: wodby
PHP_XDEBUG_MODE: "off"
PHP_XDEBUG_REMOTE_CONNECT_BACK: 1
PHP_XDEBUG_REMOTE_HOST: "10.254.254.254"
PHP_XDEBUG_IDEKEY: "PHPSTORM"
PHP_IDE_CONFIG: "serverName=drupaldriver"
volumes:
- ./:/var/www/html

0 comments on commit 55af647

Please sign in to comment.