-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from youvo/drupal11-readiness
Upgrade to Drupal 11 and update github workflow
- Loading branch information
Showing
70 changed files
with
3,660 additions
and
4,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: youvo | ||
type: drupal10 | ||
type: drupal11 | ||
docroot: web | ||
php_version: "8.3" | ||
webserver_type: nginx-fpm | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Tests | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
lint: | ||
name: Linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: none | ||
php-version: 8.3 | ||
- name: Validate Dependencies | ||
run: composer validate | ||
- name: Install Dependencies | ||
uses: ramsey/composer-install@v3 | ||
- name: Check Coding Standards | ||
run: vendor/bin/phpcs --report=summary | ||
- name: Static Code Analysis | ||
run: vendor/bin/phpstan analyze web/modules/custom | ||
|
||
test: | ||
name: Testing | ||
runs-on: ubuntu-latest | ||
needs: lint | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: no | ||
php-version: 8.3 | ||
- name: Install Dependencies | ||
uses: ramsey/composer-install@v3 | ||
- name: Setup Environment | ||
run: | | ||
sudo systemctl start mysql.service | ||
mysql -uroot -h127.0.0.1 -proot -e 'CREATE DATABASE IF NOT EXISTS db;' | ||
sudo systemctl start apache2.service | ||
- name: Unit & Kernel Tests | ||
run: vendor/bin/phpunit --testsuite unit,kernel --testdox --stop-on-failure | ||
- name: Install Drupal | ||
run: bash scripts/install-ci.sh | ||
- name: Existing Site Tests | ||
run: vendor/bin/phpunit --testsuite existing-site --testdox --stop-on-failure |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.