From 91f5810f6150423baf2c98f586d0b92928f6ad76 Mon Sep 17 00:00:00 2001 From: Lacey-Anne Sanderson Date: Sat, 14 Dec 2024 00:46:09 +0000 Subject: [PATCH] Add testing grid. --- .github/workflows/ALL-PHPUnit.yml | 4 +-- .github/workflows/MAIN-phpunit-Grid1A.yml | 41 +++++++++++++++++++++++ .github/workflows/MAIN-phpunit-Grid1B.yml | 41 +++++++++++++++++++++++ .github/workflows/MAIN-phpunit-Grid1C.yml | 41 +++++++++++++++++++++++ .github/workflows/MAIN-phpunit-Grid2C.yml | 41 +++++++++++++++++++++++ .github/workflows/MAIN-phpunit-Grid3C.yml | 41 +++++++++++++++++++++++ README.md | 17 +++++++++- 7 files changed, 223 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/MAIN-phpunit-Grid1A.yml create mode 100644 .github/workflows/MAIN-phpunit-Grid1B.yml create mode 100644 .github/workflows/MAIN-phpunit-Grid1C.yml create mode 100644 .github/workflows/MAIN-phpunit-Grid2C.yml create mode 100644 .github/workflows/MAIN-phpunit-Grid3C.yml diff --git a/.github/workflows/ALL-PHPUnit.yml b/.github/workflows/ALL-PHPUnit.yml index 430b82f..17047bf 100644 --- a/.github/workflows/ALL-PHPUnit.yml +++ b/.github/workflows/ALL-PHPUnit.yml @@ -2,8 +2,8 @@ name: PHPUnit Full Test Suite on: push: - # branches-ignore: - # - 4.x + branches-ignore: + - 4.x # Allows us to manually trigger this workflow. # This is great if there is a change made to Tripal core that we want to test our modules on ASAP. workflow_dispatch: diff --git a/.github/workflows/MAIN-phpunit-Grid1A.yml b/.github/workflows/MAIN-phpunit-Grid1A.yml new file mode 100644 index 0000000..61c5f4c --- /dev/null +++ b/.github/workflows/MAIN-phpunit-Grid1A.yml @@ -0,0 +1,41 @@ +name: PHPUnit +on: + push: + branches: + - 4.x + # Allows us to manually trigger this workflow. + # This is great if there is a change made to Tripal core that we want to test our modules on ASAP. + workflow_dispatch: + # Allows us to schedule when this workflow is run. + # This ensures we pick up any new changes committed to Tripal Core. + schedule: + # Run at 4am every morning. + - cron: '0 4 * * *' + +## UPDATES +## Update the version numbers in the job name and the action parameters. +## |-------------|-----------------|-----------------|-----------------| +## | Drupal | 10.5.x | 11.0.x | 11.1.x | +## |-------------|-----------------|-----------------|-----------------| +## | **PHP 8.1** | ![Grid1A-Badge] | | | +## | **PHP 8.2** | ![Grid1B-Badge] | | | +## | **PHP 8.3** | ![Grid1C-Badge] | ![Grid2C-Badge] | ![Grid3C-Badge] | +## |-------------|-----------------|-----------------|-----------------| + +jobs: + grid-1A: + name: "Drupal 10.5.x-dev - PHP 8.1 - PostgreSQL 16" + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Run Automated testing + uses: tripal/test-tripal-action@v1.6 + with: + directory-name: 'chado_search' + modules: 'chado_search' + build-image: TRUE + dockerfile: 'Dockerfile' + php-version: '8.1' + pgsql-version: '16' + drupal-version: '10.5.x-dev' diff --git a/.github/workflows/MAIN-phpunit-Grid1B.yml b/.github/workflows/MAIN-phpunit-Grid1B.yml new file mode 100644 index 0000000..465a5c3 --- /dev/null +++ b/.github/workflows/MAIN-phpunit-Grid1B.yml @@ -0,0 +1,41 @@ +name: PHPUnit +on: + push: + branches: + - 4.x + # Allows us to manually trigger this workflow. + # This is great if there is a change made to Tripal core that we want to test our modules on ASAP. + workflow_dispatch: + # Allows us to schedule when this workflow is run. + # This ensures we pick up any new changes committed to Tripal Core. + schedule: + # Run at 4am every morning. + - cron: '0 4 * * *' + +## UPDATES +## Update the version numbers in the job name and the action parameters. +## |-------------|-----------------|-----------------|-----------------| +## | Drupal | 10.5.x | 11.0.x | 11.1.x | +## |-------------|-----------------|-----------------|-----------------| +## | **PHP 8.1** | ![Grid1A-Badge] | | | +## | **PHP 8.2** | ![Grid1B-Badge] | | | +## | **PHP 8.3** | ![Grid1C-Badge] | ![Grid2C-Badge] | ![Grid3C-Badge] | +## |-------------|-----------------|-----------------|-----------------| + +jobs: + grid-1A: + name: "Drupal 10.5.x-dev - PHP 8.2 - PostgreSQL 16" + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Run Automated testing + uses: tripal/test-tripal-action@v1.6 + with: + directory-name: 'chado_search' + modules: 'chado_search' + build-image: TRUE + dockerfile: 'Dockerfile' + php-version: '8.2' + pgsql-version: '16' + drupal-version: '10.5.x-dev' diff --git a/.github/workflows/MAIN-phpunit-Grid1C.yml b/.github/workflows/MAIN-phpunit-Grid1C.yml new file mode 100644 index 0000000..fadb544 --- /dev/null +++ b/.github/workflows/MAIN-phpunit-Grid1C.yml @@ -0,0 +1,41 @@ +name: PHPUnit +on: + push: + branches: + - 4.x + # Allows us to manually trigger this workflow. + # This is great if there is a change made to Tripal core that we want to test our modules on ASAP. + workflow_dispatch: + # Allows us to schedule when this workflow is run. + # This ensures we pick up any new changes committed to Tripal Core. + schedule: + # Run at 4am every morning. + - cron: '0 4 * * *' + +## UPDATES +## Update the version numbers in the job name and the action parameters. +## |-------------|-----------------|-----------------|-----------------| +## | Drupal | 10.5.x | 11.0.x | 11.1.x | +## |-------------|-----------------|-----------------|-----------------| +## | **PHP 8.1** | ![Grid1A-Badge] | | | +## | **PHP 8.2** | ![Grid1B-Badge] | | | +## | **PHP 8.3** | ![Grid1C-Badge] | ![Grid2C-Badge] | ![Grid3C-Badge] | +## |-------------|-----------------|-----------------|-----------------| + +jobs: + grid-1A: + name: "Drupal 10.5.x-dev - PHP 8.3 - PostgreSQL 16" + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Run Automated testing + uses: tripal/test-tripal-action@v1.6 + with: + directory-name: 'chado_search' + modules: 'chado_search' + build-image: TRUE + dockerfile: 'Dockerfile' + php-version: '8.3' + pgsql-version: '16' + drupal-version: '10.5.x-dev' diff --git a/.github/workflows/MAIN-phpunit-Grid2C.yml b/.github/workflows/MAIN-phpunit-Grid2C.yml new file mode 100644 index 0000000..2453a29 --- /dev/null +++ b/.github/workflows/MAIN-phpunit-Grid2C.yml @@ -0,0 +1,41 @@ +name: PHPUnit +on: + push: + branches: + - 4.x + # Allows us to manually trigger this workflow. + # This is great if there is a change made to Tripal core that we want to test our modules on ASAP. + workflow_dispatch: + # Allows us to schedule when this workflow is run. + # This ensures we pick up any new changes committed to Tripal Core. + schedule: + # Run at 4am every morning. + - cron: '0 4 * * *' + +## UPDATES +## Update the version numbers in the job name and the action parameters. +## |-------------|-----------------|-----------------|-----------------| +## | Drupal | 10.5.x | 11.0.x | 11.1.x | +## |-------------|-----------------|-----------------|-----------------| +## | **PHP 8.1** | ![Grid1A-Badge] | | | +## | **PHP 8.2** | ![Grid1B-Badge] | | | +## | **PHP 8.3** | ![Grid1C-Badge] | ![Grid2C-Badge] | ![Grid3C-Badge] | +## |-------------|-----------------|-----------------|-----------------| + +jobs: + grid-1A: + name: "Drupal 11.0.x-dev - PHP 8.3 - PostgreSQL 16" + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Run Automated testing + uses: tripal/test-tripal-action@v1.6 + with: + directory-name: 'chado_search' + modules: 'chado_search' + build-image: TRUE + dockerfile: 'Dockerfile' + php-version: '8.3' + pgsql-version: '16' + drupal-version: '11.0.x-dev' diff --git a/.github/workflows/MAIN-phpunit-Grid3C.yml b/.github/workflows/MAIN-phpunit-Grid3C.yml new file mode 100644 index 0000000..03010eb --- /dev/null +++ b/.github/workflows/MAIN-phpunit-Grid3C.yml @@ -0,0 +1,41 @@ +name: PHPUnit +on: + push: + branches: + - 4.x + # Allows us to manually trigger this workflow. + # This is great if there is a change made to Tripal core that we want to test our modules on ASAP. + workflow_dispatch: + # Allows us to schedule when this workflow is run. + # This ensures we pick up any new changes committed to Tripal Core. + schedule: + # Run at 4am every morning. + - cron: '0 4 * * *' + +## UPDATES +## Update the version numbers in the job name and the action parameters. +## |-------------|-----------------|-----------------|-----------------| +## | Drupal | 10.5.x | 11.0.x | 11.1.x | +## |-------------|-----------------|-----------------|-----------------| +## | **PHP 8.1** | ![Grid1A-Badge] | | | +## | **PHP 8.2** | ![Grid1B-Badge] | | | +## | **PHP 8.3** | ![Grid1C-Badge] | ![Grid2C-Badge] | ![Grid3C-Badge] | +## |-------------|-----------------|-----------------|-----------------| + +jobs: + grid-1A: + name: "Drupal 11.1.x-dev - PHP 8.3 - PostgreSQL 16" + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Run Automated testing + uses: tripal/test-tripal-action@v1.6 + with: + directory-name: 'chado_search' + modules: 'chado_search' + build-image: TRUE + dockerfile: 'Dockerfile' + php-version: '8.3' + pgsql-version: '16' + drupal-version: '11.1.x-dev' diff --git a/README.md b/README.md index 153d33a..030deba 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,22 @@ maintainability. There are more details on [our CodeClimate project page] describing our specific maintainability issues and test coverage. [![Maintainability](https://api.codeclimate.com/v1/badges/69080fdb30c5c3a46350/maintainability)](https://codeclimate.com/github/UofS-Pulse-Binfo/chado_custom_search/maintainability) - [![Test Coverage](https://api.codeclimate.com/v1/badges/69080fdb30c5c3a46350/test_coverage)](https://codeclimate.com/github/UofS-Pulse-Binfo/chado_custom_search/test_coverage) +The following compatibility is proven via automated testing workflows. + +| Drupal | 10.5.x | 11.0.x | 11.1.x | +|-------------|-----------------|-----------------|-----------------| +| **PHP 8.1** | ![Grid1A-Badge] | | | +| **PHP 8.2** | ![Grid1B-Badge] | | | +| **PHP 8.3** | ![Grid1C-Badge] | ![Grid2C-Badge] | ![Grid3C-Badge] | + [our CodeClimate project page]: https://codeclimate.com/github/UofS-Pulse-Binfo/chado_custom_search + +[Grid1A-Badge]: https://github.com/UofS-Pulse-Binfo/chado_custom_search/actions/workflows/MAIN-phpunit-Grid1A.yml/badge.svg +[Grid1B-Badge]: https://github.com/UofS-Pulse-Binfo/chado_custom_search/actions/workflows/MAIN-phpunit-Grid1B.yml/badge.svg +[Grid1C-Badge]: https://github.com/UofS-Pulse-Binfo/chado_custom_search/actions/workflows/MAIN-phpunit-Grid1C.yml/badge.svg + +[Grid2C-Badge]: https://github.com/UofS-Pulse-Binfo/chado_custom_search/actions/workflows/MAIN-phpunit-Grid2C.yml/badge.svg + +[Grid3C-Badge]: https://github.com/UofS-Pulse-Binfo/chado_custom_search/actions/workflows/MAIN-phpunit-Grid3C.yml/badge.svg