Browse Source

Update testing (#861)

* Update Github Actions to test more
pull/863/head
Jared Whiklo 3 years ago committed by GitHub
parent
commit
c1aa0a5f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 117
      .github/workflows/build-2.x.yml

117
.github/workflows/build-2.x.yml

@ -19,17 +19,124 @@ jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allowed_failure }}
strategy:
fail-fast: false
matrix:
php-versions: ["7.3", "7.4"]
test-suite: ["kernel", "functional", "functional-javascript"]
drupal-version: ["8.9.11", "9.1.5"]
name: PHP ${{ matrix.php-versions }} drupal ${{ matrix.drupal-version }} test-suite ${{ matrix.test-suite }}
drupal-version: ["9.3.x", "9.4.x-dev"]
allowed_failure: [false]
mysql: ["5.7"]
# include experimental parts
include:
# 9.3.x on PHP 8.0
- drupal-version: '9.3.x'
php-versions: '8.0'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
- drupal-version: '9.3.x'
php-versions: '8.0'
mysql: "8.0"
test-suite: "functional"
allowed_failure: true
- drupal-version: '9.3.x'
php-versions: '8.0'
mysql: "8.0"
test-suite: "functional-javascript"
allowed_failure: true
# 9.3.x on PHP 8.1
- drupal-version: '9.3.x'
php-versions: '8.1'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
- drupal-version: '9.3.x'
php-versions: '8.1'
mysql: "8.0"
test-suite: "functional"
allowed_failure: true
- drupal-version: '9.3.x'
php-versions: '8.1'
mysql: "8.0"
test-suite: "functional-javascript"
allowed_failure: true
# 9.4.x-dev on PHP "8.0"
- drupal-version: '9.4.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
- drupal-version: '9.4.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "functional"
allowed_failure: true
- drupal-version: '9.4.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "functional-javascript"
allowed_failure: true
- drupal-version: '10.0.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
# 9.4.x-dev on PHP 8.1
- drupal-version: '9.4.x-dev'
php-versions: '8.1'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
- drupal-version: '9.4.x-dev'
php-versions: '8.1'
mysql: "8.0"
test-suite: "functional"
allowed_failure: true
- drupal-version: '9.4.x-dev'
php-versions: '8.1'
mysql: "8.0"
test-suite: "functional-javascript"
allowed_failure: true
# 10.0.x-dev on PHP 8.0
- drupal-version: '10.0.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
- drupal-version: '10.0.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "functional"
allowed_failure: true
- drupal-version: '10.0.x-dev'
php-versions: '8.0'
mysql: "8.0"
test-suite: "functional-javascript"
allowed_failure: true
# 10.0.x-dev on PHP 8.1
- drupal-version: '10.0.x-dev'
php-versions: '8.1'
mysql: "8.0"
test-suite: "kernel"
allowed_failure: true
- drupal-version: '10.0.x-dev'
php-versions: '8.1'
mysql: "8.0"
test-suite: "functional"
allowed_failure: true
- drupal-version: '10.0.x-dev'
php-versions: '8.1'
mysql: "8.0"
test-suite: "functional-javascript"
allowed_failure: true
name: PHP ${{ matrix.php-versions }} | drupal ${{ matrix.drupal-version }} | mysql ${{ matrix.mysql }} | test-suite ${{ matrix.test-suite }}
services:
mysql:
image: mysql:5.7
image: mysql:${{ matrix.mysql }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: drupal
@ -44,6 +151,7 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout code
uses: actions/checkout@v2
@ -66,6 +174,7 @@ jobs:
- name: Setup Mysql client
run: |
sudo apt-get update
sudo apt-get remove -y mysql-client mysql-common
sudo apt-get install -y mysql-client
- name: Set environment variables

Loading…
Cancel
Save