Skip to content

Commit

Permalink
Add testing grid.
Browse files Browse the repository at this point in the history
  • Loading branch information
laceysanderson committed Dec 14, 2024
1 parent 4f4e45f commit 91f5810
Show file tree
Hide file tree
Showing 7 changed files with 223 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ALL-PHPUnit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/MAIN-phpunit-Grid1A.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
41 changes: 41 additions & 0 deletions .github/workflows/MAIN-phpunit-Grid1B.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
41 changes: 41 additions & 0 deletions .github/workflows/MAIN-phpunit-Grid1C.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
41 changes: 41 additions & 0 deletions .github/workflows/MAIN-phpunit-Grid2C.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
41 changes: 41 additions & 0 deletions .github/workflows/MAIN-phpunit-Grid3C.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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'
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 91f5810

Please sign in to comment.