diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d4fc2a3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 69e2c7c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: php - -php: - - 7.4 - - 8.0 - - 8.1 - -install: - - composer install - -script: - - composer test