Skip to content

Commit

Permalink
Merge branch '11.x' of https://github.com/SU-SWS/stanford_profile int…
Browse files Browse the repository at this point in the history
…o 10.x
  • Loading branch information
pookmish committed Sep 11, 2024
2 parents 555bab6 + 4f8737d commit 9346768
Show file tree
Hide file tree
Showing 86 changed files with 5,605 additions and 1,934 deletions.
131 changes: 119 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
strategy:
fail-fast: false
container:
image: pookmish/drupal8ci:latest
image: pookmish/drupal8ci:php8.3
services:
mysql:
image: mysql:5.7
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
Expand All @@ -37,7 +37,39 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: unit-tests-results
name: d10-unit-tests-results
path: /var/www/html/artifacts
phpunit_d11:
name: PHPUnit Coverage Tests Drupal 11
runs-on: ubuntu-latest
container:
image: pookmish/drupal8ci:php8.3
services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
with:
path: project
- name: Build project
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
composer global require su-sws/stanford-caravan:11.x-dev
~/.config/composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage
- name: Save Test Results
uses: actions/upload-artifact@v4
if: failure()
with:
name: d11-unit-tests-results
path: /var/www/html/artifacts
acceptance:
name: Codeception Acceptance Tests
Expand All @@ -50,11 +82,11 @@ jobs:
DRUPAL_DATABASE_PASSWORD: drupal
DRUPAL_DATABASE_HOST: mysql
container:
image: pookmish/drupal8ci:latest
image: pookmish/drupal8ci:php8.3
options: '--network-alias drupal8ci'
services:
mysql:
image: mysql:5.7
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
Expand All @@ -78,7 +110,7 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: acceptance-tests-results
name: d10-acceptance-tests-results
path: /var/www/html/artifacts
functional:
name: Codeception Functional Tests
Expand All @@ -91,14 +123,14 @@ jobs:
DRUPAL_DATABASE_PASSWORD: drupal
DRUPAL_DATABASE_HOST: mysql
container:
image: pookmish/drupal8ci:latest
image: pookmish/drupal8ci:php8.3
options: '--network-alias=drupal8ci'
services:
selenium:
image: selenium/standalone-chrome:115.0
image: selenium/standalone-chrome
options: '--shm-size="2g"'
mysql:
image: mysql:5.7
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
Expand All @@ -112,8 +144,6 @@ jobs:
with:
path: project
- name: Run tests
env:
STANFORD_ENCRYPT: ${{ secrets.STANFORD_ENCRYPT }}=
run: |
mysql -h mysql -P 3306 -u root -pdrupal -e 'SET GLOBAL max_allowed_packet=67108864;'
composer global require su-sws/stanford-caravan:10.x-dev
Expand All @@ -122,5 +152,82 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: functional-tests-results
name: d10-functional-tests-results
path: /var/www/html/artifacts
acceptance_d11:
name: Codeception Acceptance Tests Drupal 11
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
DRUPAL_DATABASE_NAME: drupal
DRUPAL_DATABASE_USERNAME: drupal
DRUPAL_DATABASE_PASSWORD: drupal
DRUPAL_DATABASE_HOST: mysql
container:
image: pookmish/drupal8ci:php8.3
options: '--network-alias drupal8ci'
services:
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
with:
path: project
- name: Run tests
run: |
composer global require su-sws/stanford-caravan:11.x-dev
~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=acceptance
- name: Save Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: d11-acceptance-tests-results
path: /var/www/html/artifacts
functional_d11:
name: Codeception Functional Tests Drupal 11
runs-on: ubuntu-latest
env:
DRUPAL_DATABASE_NAME: drupal
DRUPAL_DATABASE_USERNAME: drupal
DRUPAL_DATABASE_PASSWORD: drupal
DRUPAL_DATABASE_HOST: mysql
container:
image: pookmish/drupal8ci:php8.3
options: '--network-alias=drupal8ci'
services:
selenium:
image: selenium/standalone-chrome
options: '--shm-size="2g"'
mysql:
image: mysql:8.0
env:
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
MYSQL_ROOT_PASSWORD: drupal
ports:
- 33306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v4
with:
path: project
- name: Run tests
run: |
composer global require su-sws/stanford-caravan:11.x-dev
~/.config/composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=functional
- name: Save Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: d11-functional-tests-results
path: /var/www/html/artifacts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: 3f3f7061-86ac-4e9e-be0a-38d67c82f7f4
langcode: en
status: true
dependencies:
config:
- node.type.stanford_opportunity
id: node.stanford_opportunity.promote
field_name: promote
entity_type: node
bundle: stanford_opportunity
label: 'Promoted to front page'
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: c9479551-b56c-4b02-a97b-1a9a8a0f5d33
langcode: en
status: true
dependencies:
config:
- node.type.stanford_opportunity
id: node.stanford_opportunity.status
field_name: status
entity_type: node
bundle: stanford_opportunity
label: Published
description: ''
required: false
translatable: true
default_value:
-
value: 0
default_value_callback: ''
settings:
on_label: 'On'
off_label: 'Off'
field_type: boolean
Loading

0 comments on commit 9346768

Please sign in to comment.