Skip to content

Commit d12d137

Browse files
claudiu-cristeaAlexSkrypnyk
authored andcommitted
Replaced Travis with GitHub actions.
1 parent d60daee commit d12d137

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-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_target]
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", "10"]
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.

0 commit comments

Comments
 (0)