diff --git a/.github/workflows/ALL-PHPUnit.xml b/.github/workflows/ALL-PHPUnit.xml new file mode 100644 index 0000000..430b82f --- /dev/null +++ b/.github/workflows/ALL-PHPUnit.xml @@ -0,0 +1,71 @@ + +name: PHPUnit Full Test Suite +on: + push: + # 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: + # Allows us to schedule when this workflow is run. + # This ensures we pick up any new changes committed to Tripal Core. + schedule: + # Run at 2am every night. + - cron: '0 2 * * *' + +env: + PKG_NAME: chado_search + MODULES: "chado_search example_ccsearch" + +jobs: + run-tests: + name: "Drupal ${{ matrix.drupal-version }} - PHP ${{ matrix.php-version }} - PostgreSQL ${{ matrix.pgsql-version }}" + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + php-version: + - "8.1" + - "8.2" + - "8.3" + pgsql-version: + - "13" + - "16" + drupal-version: + - "10.3.x-dev" + - "10.4.x-dev" + - "10.5.x-dev" + - "11.0.x-dev" + - "11.1.x-dev" + exclude: + - php-version: "8.1" + drupal-version: "11.0.x-dev" + - php-version: "8.2" + drupal-version: "11.0.x-dev" + - php-version: "8.3" + pgsql-version: "13" + drupal-version: "11.0.x-dev" + - php-version: "8.1" + drupal-version: "11.1.x-dev" + - php-version: "8.2" + drupal-version: "11.1.x-dev" + - php-version: "8.3" + pgsql-version: "13" + drupal-version: "11.1.x-dev" + + steps: + # Check out the repo + - name: Checkout Repository + uses: actions/checkout@v4 + # Here we pull the development tripaldocker image for this combo in our matrix + - name: Run Automated testing + uses: tripal/test-tripal-action@v1.6 + with: + directory-name: $PKG_NAME + modules: $MODULES + build-image: TRUE + dockerfile: 'Dockerfile' + php-version: ${{ matrix.php-version }} + pgsql-version: ${{ matrix.pgsql-version }} + drupal-version: ${{ matrix.drupal-version }} diff --git a/.github/workflow/ALL-testCoverage-codeclimate.yml b/.github/workflows/ALL-testCoverage-codeclimate.yml similarity index 100% rename from .github/workflow/ALL-testCoverage-codeclimate.yml rename to .github/workflows/ALL-testCoverage-codeclimate.yml