Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#254] Replaced Travis with GitHub actions. #255

Merged
merged 2 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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