Skip to content

Commit

Permalink
Update Github Actions workflows.
Browse files Browse the repository at this point in the history
Remove ones missed in the last commit and update the functional test.
  • Loading branch information
damontgomery committed May 3, 2021
1 parent d67c9d8 commit a57d96c
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 282 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/canary__webform_module.yml

This file was deleted.

27 changes: 9 additions & 18 deletions .github/workflows/functional_test__rector_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,16 @@ jobs:
cd ~/drupal
cp vendor/palantirnet/drupal-rector/rector.php .
# END: SHARED DRUPAL INSTALL SETUP
- name: Prepare rector_examples folder in the drupal modules directory
run: |
cd ~/drupal
mkdir -p web/modules/custom
cp -R vendor/palantirnet/drupal-rector/rector_examples web/modules/custom
# dry-run is expected to return exit code 1 if there are changes, which we are expecting to happen, here.
- name: Run rector against Drupal (dry-run)
- name: Install PHPUnit in the Drupal site since it is required for some of the rules
run: |
cd ~/drupal
vendor/bin/rector process web/modules/custom/rector_examples --dry-run --debug || if (($? == 1)); then true; else false; fi
- name: Run rector against Drupal
composer require phpunit/phpunit:~7.5 --no-progress
- name: Prepare rector_examples folder in the drupal modules directory
run: |
cd ~/drupal
vendor/bin/rector process web/modules/custom/rector_examples --debug
# diff options:
# -r: recursive
# -u: show the joined context, like git diff
# -b: ignore whitespace
# -B: ignore lines that are only whitespace
- name: Check that the updated examples match expectations
run: |
diff -rubB rector_examples_updated ~/drupal/web/modules/custom/rector_examples
mkdir -p web/modules/custom
cp -R vendor/palantirnet/drupal-rector/rector_examples web/modules/custom
- name: Install local dependencies, including Behat.
run: composer install
- name: Run Behat tests
run: vendor/bin/behat
59 changes: 0 additions & 59 deletions .github/workflows/local_package_functional_tests.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/local_package_run_rector.yml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/packagist_package_run_rector.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/static_analysis__phpstan.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/unit_tests__phpunit.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ Automate fixing deprecated Drupal code.
## Status

![Functional test: Rector examples](https://github.com/palantirnet/drupal-rector/workflows/functional_test__rector_examples/badge.svg)
![Static analysis: PhpStan](https://github.com/palantirnet/drupal-rector/workflows/static_analysis__phpstan/badge.svg)
![Unit test: PHPUnit](https://github.com/palantirnet/drupal-rector/workflows/unit_tests__php_unit/badge.svg)

## Introduction

Expand Down

0 comments on commit a57d96c

Please sign in to comment.