-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 172--global-binaries
- Loading branch information
Showing
7 changed files
with
94 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Test Static Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
Test-Static: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create a Drupal project | ||
run: composer create-project drupal/recommended-project . --ignore-platform-req=ext-gd | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
path: drainpipe | ||
|
||
- name: Setup drainpipe-dev | ||
run: mv drainpipe/drainpipe-dev . | ||
|
||
- uses: ./drainpipe/scaffold/github/actions/common/set-env | ||
|
||
- name: Install DDEV | ||
uses: ./drainpipe/scaffold/github/actions/common/ddev | ||
with: | ||
git-name: Drainpipe Bot | ||
git-email: no-reply@example.com | ||
|
||
- name: Setup Project | ||
run: | | ||
ddev config --auto | ||
ddev start | ||
ddev composer config extra.drupal-scaffold.gitignore true | ||
ddev composer config --json extra.drupal-scaffold.allowed-packages '["lullabot/drainpipe-dev", "lullabot/drainpipe"]' | ||
ddev composer config --no-plugins allow-plugins.composer/installers true | ||
ddev composer config --no-plugins allow-plugins.drupal/core-composer-scaffold true | ||
ddev composer config --no-plugins allow-plugins.lullabot/drainpipe true | ||
ddev composer config --no-plugins allow-plugins.lullabot/drainpipe-dev true | ||
ddev composer config repositories.drainpipe --json '{"type": "path", "url": "drainpipe", "options": {"symlink": false}}' | ||
ddev composer config repositories.drainpipe-dev --json '{"type": "path", "url": "drainpipe-dev", "options": {"symlink": false}}' | ||
ddev composer config minimum-stability dev | ||
ddev composer require "lullabot/drainpipe @dev" --with-all-dependencies | ||
ddev composer require "lullabot/drainpipe-dev @dev" --dev --with-all-dependencies | ||
# Restart is required to enable the provided Selenium containers | ||
ddev restart | ||
- name: Verify files were created | ||
run: | | ||
test -f phpcs.xml | ||
- name: Fix settings.php | ||
run: | | ||
sed -i '/^.*container_yamls.*$/i /** @phpstan-ignore-next-line */' web/sites/default/settings.php | ||
- name: Run Static Tests | ||
run: ddev task test:static | ||
|
||
- name: Upload test artifacts | ||
if: ${{ always() }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test_result | ||
path: test_result |
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
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
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
File renamed without changes.
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,2 +1,13 @@ | ||
includes: | ||
- vendor/lullabot/drainpipe-dev/config/phpstan.neon | ||
- ../../../mglaman/phpstan-drupal/extension.neon | ||
- ../../../phpstan/phpstan-deprecation-rules/rules.neon | ||
|
||
parameters: | ||
excludePaths: | ||
- *sites/simpletest/* | ||
- *default.settings.php | ||
- *sites/*/files/* | ||
- *settings.ddev.php | ||
- */node_modules/* | ||
# PHPStan Level 1 | ||
level: 1 |
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