Skip to content

Commit

Permalink
Merge pull request #129 from City-of-Helsinki/UHF-7036
Browse files Browse the repository at this point in the history
UHF-7036: Test forked repositories
  • Loading branch information
tuutti authored Nov 28, 2022
2 parents df201f0 + 1048f43 commit cd05561
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
on: [push]
on:
pull_request:
push:
branches:
- main
name: CI
env:
SIMPLETEST_DB: "mysql://drupal:drupal@db:3306/drupal"
Expand All @@ -11,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['8.0']
php-versions: ['8.0', '8.1']
container:
image: ghcr.io/city-of-helsinki/drupal-php-docker:${{ matrix.php-versions }}-alpine

Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
composer config repositories.5 path $GITHUB_WORKSPACE
composer require drupal/${{ secrets.MODULE_NAME }} -W
composer run-script drupal-phpunit-upgrade
composer require "drush/drush ^10.0"
composer require "drush/drush ^11.0"
composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer require --dev donatj/mock-webserver
composer require --dev "drupal/coder"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ all garbage collection tasks (such as cleaning removed remote entities), so you

It's possible to overwrite `url` and `canonical_url` per project by adding a configuration file named `helfi_tpr.migration_settings.{migrate_id}.yml` and defining the URLs there.

### Developing

Make sure you have `donatj/mock-webserver` installed when running tests locally: `composer require --dev donatj/mock-webserver`

## Contact

Slack: #helfi-drupal (http://helsinkicity.slack.com/)
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"drupal/coder": "^8.3",
"phpspec/prophecy-phpunit": "^2"
"phpspec/prophecy-phpunit": "^2",
"donatj/mock-webserver": "dev-master"
}
}

0 comments on commit cd05561

Please sign in to comment.