Skip to content

Commit 55af647

Browse files
authored
Merge pull request #255 from drevops/feature/github-actions
[#254] Replaced Travis with GitHub actions.
2 parents d60daee + 805be2f commit 55af647

File tree

3 files changed

+49
-12
lines changed

3 files changed

+49
-12
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: ci
2+
on: [push, pull_request]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
fail-fast: false
8+
matrix:
9+
php_version: ["7.4", "8.0", "8.1"]
10+
drupal_version: ["9"]
11+
exclude:
12+
- php_version: "7.4"
13+
drupal_version: "10"
14+
- php_version: "8.0"
15+
drupal_version: "10"
16+
env:
17+
PHP_VERSION: ${{ matrix.php_version }}
18+
DRUPAL_VERSION: ${{ matrix.drupal_version }}
19+
DOCKER_USER_ID: "1001"
20+
steps:
21+
- name: clone
22+
uses: actions/checkout@v3
23+
- name: docker-compose up -d
24+
run: docker-compose up -d
25+
- name: composer self-update
26+
run: docker-compose exec -T php composer self-update
27+
- name: composer require
28+
run: docker-compose exec -u ${DOCKER_USER_ID} -T php composer require --no-interaction --dev --no-update drupal/core:^${DRUPAL_VERSION}
29+
- name: composer install
30+
run: docker-compose exec -T php composer install
31+
- name: composer test
32+
run: docker-compose exec -T php composer test

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: "2"
2+
services:
3+
4+
php:
5+
image: wodby/drupal-php:${PHP_VERSION}
6+
environment:
7+
PHP_FPM_USER: wodby
8+
PHP_FPM_GROUP: wodby
9+
PHP_FPM_CLEAR_ENV: "yes"
10+
PHP_OPCACHE_PRELOAD_USER: wodby
11+
PHP_XDEBUG_MODE: "off"
12+
PHP_XDEBUG_REMOTE_CONNECT_BACK: 1
13+
PHP_XDEBUG_REMOTE_HOST: "10.254.254.254"
14+
PHP_XDEBUG_IDEKEY: "PHPSTORM"
15+
PHP_IDE_CONFIG: "serverName=drupaldriver"
16+
volumes:
17+
- ./:/var/www/html

0 commit comments

Comments
 (0)