-
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.
- Loading branch information
Showing
112 changed files
with
7,992 additions
and
20,975 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,128 @@ | ||
on: pull_request | ||
name: Review | ||
|
||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
name: Changelog should be updated | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- name: Git fetch | ||
run: git fetch | ||
|
||
- name: Check that changelog has been updated. | ||
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0 | ||
|
||
markdown-coding-standards: | ||
name: Markdown coding standards | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Coding standards | ||
run: | | ||
docker run --rm --volume "$PWD:/md" peterdavehello/markdownlint markdownlint $(git ls-files *.md) | ||
composer-normalize: | ||
name: composer-normalize | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
docker network create frontend | ||
docker compose run --user root --rm phpfpm composer install | ||
docker compose run --user root --rm phpfpm composer normalize | ||
coding-standards-phpcs: | ||
name: coding-standards-check/phpcs | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
docker network create frontend | ||
docker compose run --user root --rm phpfpm composer install | ||
docker compose run --user root --rm phpfpm composer coding-standards-check/phpcs | ||
coding-standards-twig-cs-fixer: | ||
name: coding-standards-check/twig-cs-fixer | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
docker network create frontend | ||
docker compose run --user root --rm phpfpm composer install | ||
docker compose run --user root --rm phpfpm composer coding-standards-check/twig-cs-fixer | ||
coding-standards-assets: | ||
name: coding-standards-check/assets | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
docker network create frontend | ||
docker compose run --user root --rm node yarn install | ||
docker compose run --user root --rm node yarn coding-standards-check | ||
install-site: | ||
name: Check that site can be installed | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install site | ||
run: | | ||
docker network create frontend | ||
docker compose pull | ||
docker compose up --detach | ||
# Important: Use --no-interaction to make https://getcomposer.org/doc/06-config.md#discard-changes have effect. | ||
docker compose exec --user root phpfpm composer install --no-interaction | ||
# Install the site | ||
docker compose exec --user root phpfpm vendor/bin/drush site:install --existing-config --yes | ||
# Build theme assets | ||
docker compose run --user root --rm node yarn install | ||
docker compose run --user root --rm node yarn build | ||
- name: Open site | ||
run: | | ||
echo $(docker compose exec phpfpm vendor/bin/drush --uri=http://$(docker compose port nginx 8080) user:login) | ||
config-check: | ||
name: Check that config is up to date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install site | ||
run: | | ||
docker network create frontend | ||
docker compose pull | ||
docker compose up --detach | ||
# Important: Use --no-interaction to make https://getcomposer.org/doc/06-config.md#discard-changes have effect. | ||
docker compose exec --user root phpfpm composer install --no-interaction | ||
# Install the site | ||
docker compose exec --user root phpfpm vendor/bin/drush site:install --existing-config --yes | ||
- name: Export config | ||
run: docker compose exec --user root phpfpm vendor/bin/drush config:export --yes | ||
- name: Check for changes in config | ||
run: git diff --diff-filter=ACMRT --exit-code config/ |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"default": true, | ||
// https://github.com/DavidAnson/markdownlint/blob/main/doc/md013.md | ||
"line-length": { | ||
"line_length": 120, | ||
"code_blocks": false, | ||
"tables": false | ||
}, | ||
// https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md | ||
"no-duplicate-heading": { | ||
"siblings_only": true | ||
} | ||
} |
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,2 @@ | ||
# Ignore artifacts: | ||
build |
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
Oops, something went wrong.