Skip to content

Commit

Permalink
Replaced Travis with GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiu-cristea authored and AlexSkrypnyk committed Nov 13, 2022
1 parent d60daee commit d12d137
Show file tree
Hide file tree
Showing 2 changed files with 32 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_target]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: ["7.4", "8.0", "8.1"]
drupal_version: ["9", "10"]
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.

0 comments on commit d12d137

Please sign in to comment.