Skip to content

Commit

Permalink
Update GitHub workflow and fix site install
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Bäse committed Dec 25, 2024
1 parent 7564f1f commit 538785b
Show file tree
Hide file tree
Showing 13 changed files with 744 additions and 115 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
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
80 changes: 0 additions & 80 deletions .github/workflows/phpanalysis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions composer-manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ packages:
dekor/php-array-table: '2.0'
dflydev/dot-access-data: v3.0.3
doctrine/annotations: 2.0.2
doctrine/common: 3.4.5
doctrine/deprecations: 1.1.4
doctrine/event-manager: 2.0.1
doctrine/instantiator: 2.0.0
doctrine/lexer: 2.1.1
doctrine/persistence: 3.4.0
dompdf/php-font-lib: 1.0.1
drupal/admin_toolbar: 3.5.1
drupal/coder: 8.3.26
Expand All @@ -43,6 +46,8 @@ packages:
drupal/core-project-message: 11.1.0
drupal/core-recommended: 11.1.0
drupal/core-vendor-hardening: 11.1.0
drupal/devel: 5.3.1
drupal/devel_mail_logger: 2.0.0
drupal/entity: 1.5.0
drupal/file_mdm: 3.1.0
drupal/filefield_paths: 1.0.0-beta8
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
"drupal/core-project-message": "^11.1",
"drupal/core-recommended": "^11.1",
"drupal/core-vendor-hardening": "^11.1",
"drupal/devel": "^5.3",
"drupal/devel_mail_logger": "^2.0",
"drupal/entity": "^1.4",
"drupal/filefield_paths": "^1.0@beta",
"drupal/gin": "^4.0",
Expand Down Expand Up @@ -134,6 +136,7 @@
},
"drupal-lenient": {
"allowed-list": [
"drupal/devel_mail_logger",
"drupal/jsonapi_boost",
"drupal/jsonapi_cross_bundles",
"drupal/multivalue_form_element",
Expand Down
Loading

0 comments on commit 538785b

Please sign in to comment.