Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with migration that wouldn't run on MariaDB 10 by specifying a primary key #2570

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
568 commits
Select commit Hold shift + click to select a range
dc1ae60
csfix
simongroenewolt Jan 10, 2021
6f9cbef
change settings so ROLE_ADMIN keeps the same permissions - this shoul…
simongroenewolt Jan 10, 2021
ebeeab8
Update tests to pass permissions features
I-Valchev Jan 18, 2021
c313532
csfix
I-Valchev Jan 18, 2021
a12d536
Update users.feature
I-Valchev Jan 18, 2021
47a11ff
Made switch user voter a bit to restrictive
simongroenewolt Jan 20, 2021
61ebc25
separate editing 'own profile' from editing another user
simongroenewolt Jan 20, 2021
0265f75
various updates to permissions.yaml
simongroenewolt Jan 20, 2021
c46ae14
clean up BackendMenuBuilder.php: remove TODO items that have been don…
simongroenewolt Jan 20, 2021
df0a1e6
clean up: remove TODO items that have been done
simongroenewolt Jan 20, 2021
723f31d
csfix
simongroenewolt Jan 20, 2021
93be880
csfix
simongroenewolt Jan 20, 2021
bd1e3e7
english translation keys added
simongroenewolt Jan 22, 2021
b869f14
updated permissions setup for user edit form (UserType.php)
simongroenewolt Jan 22, 2021
ec687c3
fixed permissions for api in bolt admin (decided not to try and actua…
simongroenewolt Jan 22, 2021
8a68008
managed to come up with a reasonable way to limit access to translate…
simongroenewolt Jan 23, 2021
c2d0650
Clean up tests
bobdenotter Jan 24, 2021
52002a2
Update users.feature
bobdenotter Jan 24, 2021
c1b1e93
Update users.feature
bobdenotter Jan 24, 2021
2d5bc37
Update users.feature
bobdenotter Jan 24, 2021
30059ce
Update config in permissions.yaml so they will be (more or less) back…
simongroenewolt Jan 24, 2021
15ad380
Prepare relase 4.2.0-beta.6
bobdenotter Jan 24, 2021
9d0676f
Prepare Release 4.1.12
bobdenotter Jan 24, 2021
670fdb2
Fix `|svg` filter for images outside of set
I-Valchev Jan 28, 2021
8351490
New Skeleton theming
bobdenotter Jan 29, 2021
103b6d5
remove ROLE_ADMIN check, no replacement needed as there is already a …
simongroenewolt Jan 24, 2021
df7e700
This `use` is no longer needed
bobdenotter Jan 25, 2021
902525b
Update ROLE_ADMIN check to specific media_edit permission.
simongroenewolt Jan 28, 2021
af828d8
Update ROLE_ADMIN check to specific fetch_embed_data permission.
simongroenewolt Jan 28, 2021
90e274f
Update ROLE_ADMIN check to specific permissions for list_files:config…
simongroenewolt Jan 28, 2021
5f4258d
csfix
simongroenewolt Jan 28, 2021
623a69c
fix ROLE_ADMIN use by deleting unused controller
simongroenewolt Jan 29, 2021
dbd938b
Remove (abandoned) `sensiolabs/security-checker`
bobdenotter Feb 1, 2021
b147497
Toggle password on login fixed for Symfony forms
I-Valchev Feb 1, 2021
bdf8e1f
Replace `and` with `&&`
I-Valchev Feb 4, 2021
c6efc17
Show an envelope icon for email fields to distinguish from text
I-Valchev Feb 3, 2021
1df2127
Refactor `ErrorController` by replacing container dependency with `Pa…
I-Valchev Feb 4, 2021
f092578
Use PSR-1 basic coding standard for method names
I-Valchev Feb 4, 2021
8e9dca3
Remove incorrect `PHPDoc @var` tag in RelationRepository
I-Valchev Feb 8, 2021
701d1b9
Update src/Repository/RelationRepository.php
bobdenotter Feb 8, 2021
cdbe53c
Line-break
bobdenotter Feb 8, 2021
ae47fb3
Content `toArray()` method returns fields according to definition
I-Valchev Feb 8, 2021
268dcb8
Update ContentEditController.php
I-Valchev Feb 4, 2021
20e55bb
Update bolt/common dependency
I-Valchev Feb 8, 2021
458b3aa
Merge branch '4.2'
bobdenotter Feb 9, 2021
5ef4cec
Prepare release 5.0.0 beta 1 🙈
bobdenotter Feb 9, 2021
02d55d3
Ensure sufficient contrast ratio for Editor sidebar text
I-Valchev Feb 11, 2021
4c9fe69
`ROLE_ADMIN` can access site in maintenance mode
I-Valchev Feb 8, 2021
12fe661
Add maintenance warning on frontend
I-Valchev Feb 9, 2021
9a8b0ea
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
ed6cc3f
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
a7bed01
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
abd5693
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
7a24deb
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
d47492d
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
35b9401
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
1d61d56
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
2c5ca86
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
07edbb1
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
647122c
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
7e2e52b
Update translations/messages.en.xlf
bobdenotter Feb 9, 2021
47aa007
Tweak, tweak
bobdenotter Feb 9, 2021
37f8d8c
Keep cache timestamps for all `.env` files
I-Valchev Feb 9, 2021
eac7b59
Selects with `multiple: true` always have an array value
I-Valchev Feb 10, 2021
49b5f41
Make sure the magic `get` uses the configured `date_format`
I-Valchev Feb 10, 2021
490eb45
Fix `|order` filter by date
I-Valchev Feb 10, 2021
54e9754
Prepare release 4.1.12
bobdenotter Feb 13, 2021
c47dc69
Keep `sensiolabs/security-checker` around for now
bobdenotter Feb 14, 2021
50ba825
CS fixes
bobdenotter Feb 15, 2021
0035f72
Add `overview_aside` widget targets
I-Valchev Feb 15, 2021
b31f47a
Update CSS for Skeleton theme
bobdenotter Feb 17, 2021
fb6026a
Update simple.css
bobdenotter Feb 17, 2021
fe347a5
Move `doctrine/doctrine-migrations-bundle` to `require-dev`
bobdenotter Feb 15, 2021
195a958
Add Composer scripts for 4.2
bobdenotter Feb 15, 2021
f9eee02
Update _multiselect.scss
eduardomart Feb 12, 2021
f7273ed
Update assets/scss/modules/editor/fields/_multiselect.scss
I-Valchev Feb 15, 2021
76c1ee0
Update assets/scss/modules/editor/fields/_multiselect.scss
bobdenotter Feb 15, 2021
cdfec06
Update _multiselect.scss
bobdenotter Feb 15, 2021
c1c3003
Don't ignore locale settings on initial request or clear session
I-Valchev Feb 18, 2021
a2329de
Composer script callbacks
I-Valchev Feb 22, 2021
ee5058e
WIP example
I-Valchev Feb 18, 2021
94dfafe
Revert composer script in core
I-Valchev Feb 22, 2021
3346359
Remove outdated project update scripts
I-Valchev Feb 22, 2021
59d22d4
Delete ProjectEventHandler.php
I-Valchev Feb 22, 2021
c08bec0
Delete ProjectComposerEventHandler.php
bobdenotter Feb 22, 2021
5d38273
Fix taxonomy `listing_template` inconsistency. Fix the canonical for …
I-Valchev Feb 18, 2021
21ac747
Don't show old fields in a `set` if they're removed from the definition
I-Valchev Feb 16, 2021
e728d6e
Don't break collection looping if definition changes
I-Valchev Feb 22, 2021
26a2a52
Use more specific selector for the `setcontent` [no] test page
I-Valchev Feb 23, 2021
e13ba71
Update setcontent.feature
I-Valchev Feb 23, 2021
e0968f9
Fix setcontent html
I-Valchev Feb 24, 2021
905f289
Allow for colored output in update scripts
I-Valchev Feb 23, 2021
80f699c
Add project update/install callables
I-Valchev Feb 23, 2021
71c22e9
Use `symfony/assets` URL generation for assets in `ImageExtension.php`
I-Valchev Feb 23, 2021
0dfd86d
Don't use `dump` in setcontent tests
I-Valchev Feb 24, 2021
39cc049
`|order` filter by negative number sorts correctly
I-Valchev Feb 24, 2021
4c1029f
Allow `ROLE_EDITOR` to view and manage media files
I-Valchev Feb 24, 2021
44473d8
Bump dependency major versions
I-Valchev Feb 22, 2021
5dfdaf9
Fix matcher
I-Valchev Feb 23, 2021
155590c
Remove `is_allowed` function. Symfony equivalent is `is_granted`
I-Valchev Feb 18, 2021
49ba6bc
Update UserExtension.php
I-Valchev Feb 18, 2021
866601d
Remove unused check in `FieldType`
I-Valchev Feb 18, 2021
b2b0c3a
CS fixes, type hinting
bobdenotter Feb 25, 2021
075c8c6
check if variable is not defined
tambait Feb 17, 2021
f4e71ee
Add polish translations
kryst3q Feb 25, 2021
4c122de
Make Embed fields accessible
I-Valchev Feb 25, 2021
82e1dee
Clean up messages from master
I-Valchev Feb 25, 2021
ab07e4f
Prepare release 4.1.14
bobdenotter Feb 26, 2021
c015785
Fix for #2427: added search term encoding & escaping to match the for…
EmilePerron Feb 26, 2021
44c8720
Tweaking the composer scripts
bobdenotter Feb 27, 2021
c139914
Don't remove these lines
bobdenotter Feb 27, 2021
8da4624
Tweak, tweak
bobdenotter Feb 28, 2021
14019b5
Update `shivammathur/setup-php` to v2
I-Valchev Mar 2, 2021
bdd26e6
Fix unit and behavioural tests
I-Valchev Mar 2, 2021
d7aa0b1
Update `setup-php` for accessibility tests
I-Valchev Mar 2, 2021
da4932f
Order collections by their fields' sortorder
I-Valchev Mar 1, 2021
fdaf8bd
csfix
I-Valchev Mar 1, 2021
b0c80a6
Order collections by their fields' sortorder
I-Valchev Mar 1, 2021
2d9c0e4
csfix
I-Valchev Mar 1, 2021
a34ae5b
Update FieldFillListener.php
I-Valchev Mar 2, 2021
856c014
Don't break when creating a field with definition inconsistencies
I-Valchev Mar 3, 2021
40a8b27
csfix
I-Valchev Mar 3, 2021
772e814
Identical record slugs in `menu.yaml` don't create conflicting URIs
I-Valchev Mar 4, 2021
570cd52
Temporary version lock for `api-platform` bug
I-Valchev Mar 9, 2021
6e1dafc
Fix for `composer validate`
I-Valchev Mar 9, 2021
a29df4f
Allow full authentication if `IS_AUTHENTICATED_REMEMBERED` is insuffi…
I-Valchev Mar 8, 2021
8e8b55d
Update security.yaml
I-Valchev Mar 9, 2021
bf946b8
Run yaml migrations on `composer update`
I-Valchev Mar 8, 2021
f6a7b0e
Set correct classes and disabled states for the `_pager_basic.html.tw…
I-Valchev Mar 8, 2021
847c938
Fix for accessible `aria-current`
I-Valchev Mar 10, 2021
0269807
Update _pager_basic.html.twig
bobdenotter Mar 13, 2021
da231ea
Ensure `slug` has a `uses` set
bobdenotter Mar 13, 2021
8d5aa99
Don't break if listing pages have extra parameters
bobdenotter Mar 13, 2021
2ec1bf7
Show total number of records on listing
bobdenotter Mar 13, 2021
07f674b
Prepare release 4.1.15
bobdenotter Mar 13, 2021
7c8a742
Update CHANGELOG.md
bobdenotter Mar 13, 2021
c75bb59
Updating version numbers for 5.0.0-beta.2
bobdenotter Mar 14, 2021
94a298b
Create m_2021_03_14-permissions.yaml
bobdenotter Mar 14, 2021
c08a1b0
Update simple.css with latest changes
bobdenotter Mar 14, 2021
d178940
Allow `--roles` option using the `bin/console bolt:add-user` command
I-Valchev Mar 18, 2021
46744d7
Run migrations check on `composer install` and show how to migrate
I-Valchev Mar 18, 2021
7296f46
Improve parameter override for Listing Pages
bobdenotter Mar 15, 2021
f3ce834
Update ListingController.php
bobdenotter Mar 15, 2021
3a5f5a5
Accept less string search like `%foo%bar%`
I-Valchev Mar 17, 2021
8f7164b
The `|excerpt` filter returns the excerpt in the correct locale
I-Valchev Mar 18, 2021
e53f0b4
Update behavioural_tests.yaml
I-Valchev Mar 23, 2021
eda7e09
Add comments, fix for E2E
I-Valchev Mar 23, 2021
29278c5
Properly apply fix #2469 for master
bobdenotter Mar 23, 2021
c33004f
Fix the `allow_twig` option to work in the preview
I-Valchev Mar 23, 2021
d7b221f
Redirect to homepage on authenticate if dashboard access is not granted
I-Valchev Mar 22, 2021
b269bed
Fix phpunit tests
I-Valchev Mar 22, 2021
42e7484
Prepare release 4.1.16
bobdenotter Mar 23, 2021
0712a0d
Increase contrast ratio to 4.5:1 for green buttons
nestordedios Mar 24, 2021
47a4afa
Increase contrast ratio to 4.5:1 of disabled input elements
nestordedios Mar 24, 2021
bad3006
Increase contrast ratio to 4.5:1 of red * symbol on required fields
nestordedios Mar 24, 2021
314315d
Add missing aria-label attribute to datepicker and date reset buttons
nestordedios Mar 24, 2021
0d5fcf4
Add role="presentation" attribute to tablist elements
nestordedios Mar 24, 2021
3e026dc
Set outline to pagination items to improve accesibility
nestordedios Mar 24, 2021
b31ce4f
Offset margin of listing filter to see last item focus
nestordedios Mar 24, 2021
0161701
Add focus-visible class to sidebar toggle button
nestordedios Mar 24, 2021
65ca6e6
Add outline to sidebar toggle button and recenter it
nestordedios Mar 24, 2021
07ed692
Use form and shape in addition to colour for content statuses
I-Valchev Mar 25, 2021
8099760
Don't hide last ellipsis dot, search button covers input height
I-Valchev Mar 25, 2021
09424e5
csfix
I-Valchev Mar 25, 2021
a0ce10a
Add `copy to clipboard` for suggested password. Fix view password glitch
I-Valchev Mar 25, 2021
4de4302
Localize content listing details
I-Valchev Mar 25, 2021
28327cb
Pretty code tags in the Editor
I-Valchev Mar 25, 2021
db5ef3e
csfix
I-Valchev Mar 25, 2021
03a7619
Less padding
I-Valchev Mar 25, 2021
3adb133
Minor mobile improvements to content editing
I-Valchev Mar 24, 2021
4cef210
Apply stylelint fixes
I-Valchev Mar 25, 2021
30e7be6
Fix the user tests
I-Valchev Mar 25, 2021
43a7c1e
Update users.feature
I-Valchev Mar 25, 2021
0a65027
Fixes a PHPStan check error, introduced in Symfony 5.2.6
bobdenotter Mar 29, 2021
fe11f46
On `Forbidden`, only redirect to the dashboard if the user is granted…
bobdenotter Mar 30, 2021
1e206de
PHP 8.0 support for Bolt 5.0
bobdenotter Mar 27, 2021
87d3485
Update TranslationInterface.php
bobdenotter Mar 27, 2021
65ebf67
Update behat.yml
bobdenotter Mar 27, 2021
9fd06d5
CS fixes
bobdenotter Mar 27, 2021
9e5415b
Herp derp
bobdenotter Mar 27, 2021
70e7461
Update BackendMenuBuilder.php
bobdenotter Mar 27, 2021
28e662a
Upload behat textfiles.
bobdenotter Mar 29, 2021
a97222f
Run the code analyses and unit tests on php 7.2 and 8.0
I-Valchev Mar 29, 2021
1d06a48
Adding "Edit Permissions" button, applying spit-polish to "Edit users…
bobdenotter Mar 30, 2021
0b31538
So tedious
bobdenotter Mar 30, 2021
8436871
So so tedious
bobdenotter Mar 30, 2021
ca92431
Update users.feature
bobdenotter Mar 31, 2021
655748b
So, so, so tedious
bobdenotter Mar 31, 2021
d98ac4b
Only show generic `Invalid credentials` error on login failure screen
I-Valchev Mar 31, 2021
afb0d44
Only hide the UsernameNotFound exception
I-Valchev Mar 31, 2021
35acae9
Only capture UsernameNotFoundException
I-Valchev Mar 31, 2021
f781b39
Tweaking users and permissions
bobdenotter Apr 1, 2021
6672fe7
Update UserRepositoryTest.php
bobdenotter Apr 1, 2021
1cc6b1a
Updating tests
bobdenotter Apr 1, 2021
299e2b8
"This time the tests should be trivial to fix"
bobdenotter Apr 1, 2021
d964101
Space out status indicator from its text
I-Valchev Apr 1, 2021
55ab04b
Create SECURITY.md
I-Valchev Apr 1, 2021
2e6686c
Use `CompletePackageInterface` in BaseExtension
bobdenotter Apr 2, 2021
1b0666e
Remove 4.x deprecations
I-Valchev Feb 18, 2021
da2b286
csfix
I-Valchev Feb 18, 2021
f7d2220
Fix filter
I-Valchev Feb 18, 2021
c803486
Update composer.json
bobdenotter Apr 3, 2021
9f813de
And a few more
bobdenotter Apr 4, 2021
ec59655
Update m_2021_03_14-permissions.yaml
bobdenotter Apr 5, 2021
0806678
Prepare release 4.1.17
bobdenotter Apr 4, 2021
e3a94db
Don't run migrations in composer scripts, if the Database is not init…
bobdenotter Apr 9, 2021
3a5a8a4
Initialise Doctrine Migration table, make command less noisy
bobdenotter Apr 9, 2021
3a5b04e
Update Makefile
bobdenotter Apr 9, 2021
dd8db64
Make sure a select field can accept a string value
I-Valchev Apr 6, 2021
e2ad1ac
Fix bug where `anyField` search no longer works on listing
I-Valchev Apr 7, 2021
57a6e58
Also allow `anything`
I-Valchev Apr 7, 2021
9004e01
Allow parsing of `localdate`s like `now` or `today + 1 week, 21:00`
bobdenotter Apr 7, 2021
8b6a1da
Suppress unneeded notices in ECS
bobdenotter Apr 8, 2021
df64ba5
CS fixes ♾
bobdenotter Apr 8, 2021
a0a7ac7
Show 404 instead of error when missing secret
bobdenotter Apr 9, 2021
c3fec0b
Ensure installation of Bolt Assets on `composer update`
bobdenotter Apr 12, 2021
0ff1056
Corrected the filepath for getsvg() function
Apr 14, 2021
fc8201c
Decode HTML entities in `title_format` and related
I-Valchev Apr 13, 2021
d4490c2
Add visually hidden label to global search input field
nestordedios Mar 31, 2021
73fd235
Remove hardcoded color style and use --body-dimmed color
nestordedios Apr 14, 2021
91b89d9
Escape password, to not break the page's HTML
bobdenotter Apr 20, 2021
272e1ca
Allow `SelectField` options from callables and services
I-Valchev Apr 20, 2021
b58e987
Make sure `container->has` is called with string values only
I-Valchev Apr 20, 2021
3e2074e
Locale get link always `_locale` parameter
I-Valchev Apr 14, 2021
4fbccb9
For `bolt_content_edit`, set the `edit_locale` route param
I-Valchev Apr 19, 2021
c4f5750
Fix datepicker to only attempt to use existing locales, ensuring Time…
bobdenotter Apr 20, 2021
f773008
Fix edgecase where Excerpt could start with `. `.
bobdenotter Apr 21, 2021
3f6a0e5
The `latest` directive uses `-publishedAt` instead of `-id`
I-Valchev Apr 21, 2021
49c0dae
Fixing e2e test 🙈
bobdenotter Apr 21, 2021
8676e17
Prepare release 4.1.18
bobdenotter Apr 21, 2021
b0a5b48
Update CHANGELOG.md
bobdenotter Apr 21, 2021
e73b90b
Update CHANGELOG.md
bobdenotter Apr 21, 2021
ea7861d
2177: Add sr only text to select all checkbox
DorienD Apr 22, 2021
6a47b68
Fix linting
DorienD Apr 22, 2021
e76f4d9
Don't throw `Argument 2 passed to Bolt\Doctrine\JsonHelper::wrapJsonF…
I-Valchev Apr 26, 2021
b470d6a
Support multiple targets for widget, keeping `$target` too
I-Valchev Apr 26, 2021
3156829
Fix unit tests
I-Valchev Apr 26, 2021
1313fd0
Update BoltHeaderWidget.php
I-Valchev Apr 26, 2021
1eedf33
`SnippetWidget` has multiple targets
I-Valchev Apr 26, 2021
68bf0d9
Allow single targets in `SnippedWidget`
I-Valchev Apr 26, 2021
af686a3
Added the missing additional targets widgets to the backend (#2558)
Spomsoree May 2, 2021
a92ad14
Fix a CSS quirk in listing overview pages
bobdenotter Apr 28, 2021
83b6d50
Made the canonical link widget use a overridable template
Spomsoree May 1, 2021
d32eeba
Added the option to get a relative path passed to the canonical template
Spomsoree May 1, 2021
2925d48
Ran csfix to resolve the code style errors on the canonical template
Spomsoree May 2, 2021
cbd53d0
Kill it with fire
bobdenotter May 3, 2021
d3f4763
Require opt-in for FLoC header
bobdenotter Apr 30, 2021
6257b2b
CS fix
bobdenotter Apr 30, 2021
8c02e1d
Update src/Configuration/Parser/GeneralParser.php
bobdenotter May 3, 2021
55fd452
fix issue with migration that wouldn't run on MariaDB 10 by adding a …
simongroenewolt May 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ trim_trailing_whitespace = false
indent_style = space
indent_size = 4

[*.scss]
indent_style = space
indent_size = 2

[*.sh]
indent_style = tab
indent_size = 4
Expand Down
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/phpunit.xml.dist export-ignore
/run_behat_tests.sh export-ignore
/symfony.lock export-ignore
/bin export-ignore
/config export-ignore
/docker export-ignore
/public export-ignore
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/2_Security_issue.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ about: Discovered a Security Issue in Bolt?
⚠️ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.

If you have found a security issue in Bolt, please send the details to
security@bolt.cm and don't disclose it publicly until we can provide a fix for
it. If you wish, we'll credit you for finding verified issues, when we release
the patched version.
security@boltcms.io and don't disclose it publicly until we can provide a fix
for it. If you wish, we'll credit you for finding verified issues, when we
release the patched version.

A note on "Self XSS"
--------------------
Expand Down
58 changes: 58 additions & 0 deletions .github/workflows/a11y_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Accessibility (a11y) Tests

on:
pull_request:

jobs:
a11y_tests:
strategy:
fail-fast: false
matrix:
php-version: ['7.2']
node-version: ['12.5']
actions:
-
name: Run pa11yci
run: npm run a11y:ci

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

# see https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
-
name: Use Node.js 12.5
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
coverage: none
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
- name: Install dependencies
run: |
sudo composer self-update -q
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
./bin/console bolt:info --ansi
npm set progress=false
npm ci
- name: Prepare environment
run: |
# build assets
npm run build
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
# prepare web server for e2e tests
./bin/console doctrine:database:create
./bin/console doctrine:schema:create
./bin/console doctrine:fixtures:load --group=without-images -n
./bin/console server:start 127.0.0.1:8088
# test if web server works
sleep 3
wget "http://127.0.0.1:8088/bolt/login"

- run: ${{ matrix.actions.run }}
110 changes: 110 additions & 0 deletions .github/workflows/behavioural_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: API & Behavioural Tests (Behat)

on:
pull_request:

jobs:
api:
name: API Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['12.5']
php-version: ['7.2']
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
# See https://github.community/t/sudo-apt-install-fails-with-failed-to-fetch-http-security-ubuntu-com-404-not-found-ip/17075
- run: sudo apt update
- name: Install dependencies
run: |
sudo composer self-update -q
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
./bin/console bolt:info --ansi
npm set progress=false
npm ci
mkdir -p ./var/log/e2e-reports/report/features/
touch ./var/log/e2e-reports/report/features/.gitkeep
# Install latest stable Chrome for e2e tests
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome*.deb
- name: Prepare environment
run: |
# build assets
npm run build
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
# prepare web server for e2e tests
./bin/console doctrine:database:create
./bin/console doctrine:schema:create
./bin/console doctrine:fixtures:load --group=without-images -n
./bin/console server:start 127.0.0.1:8088
# test if web server works
sleep 3
wget "http://127.0.0.1:8088/bolt/login"

- name: run API tests
run: make behat-api-quiet
e2e:
name: E2E Tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: ['12.5']
php-version: ['7.2']
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
- uses: nanasess/setup-chromedriver@master
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# See https://github.community/t/sudo-apt-install-fails-with-failed-to-fetch-http-security-ubuntu-com-404-not-found-ip/17075
- run: sudo apt update
- name: Install dependencies
run: |
sudo composer self-update -q
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
./bin/console bolt:info --ansi
npm set progress=false
npm ci
mkdir -p ./var/log/e2e-reports/report/features/
touch ./var/log/e2e-reports/report/features/.gitkeep
# Install latest stable Chrome for e2e tests
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome*.deb
- name: Prepare environment
run: |
# build assets
npm run build
sudo chmod -R 777 config/ public/files/ public/theme/ public/thumbs/ var/
# prepare web server for e2e tests
./bin/console doctrine:database:create
./bin/console doctrine:schema:create
./bin/console doctrine:fixtures:load --group=without-images -n
./bin/console server:start 127.0.0.1:8088
# test if web server works
sleep 3
wget "http://127.0.0.1:8088/bolt/login"
- name: Install latest Google Chrome (for e2e tests)
run: wget -q https://script.install.devinsideyou.com/google-chrome && chmod +x google-chrome

- name: run e2e tests
run: ./run_behat_tests.sh && make behat-js-quiet

- name: Upload Behat logs
run: ./bin/upload-textfiles "var/log/behat-reports/*.log"
if: always()
10 changes: 4 additions & 6 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-version: ['7.2', '8.0']
actions:
-
name: Coding Standard
Expand All @@ -37,10 +38,6 @@ jobs:
name: Check XLIFF translation files
run: bin/console lint:xliff translations --ansi

-
name: Check dependencies for security vulnerabilities
run: bin/console security:check --ansi

-
name: Check Doctrine Mapping
run: bin/console doctrine:schema:validate --skip-sync -vvv --no-interaction --ansi
Expand All @@ -51,10 +48,11 @@ jobs:
steps:
- uses: actions/checkout@v2
# see https://github.com/shivammathur/setup-php
- uses: shivammathur/setup-php@v1
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: 7.2
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none

- run: composer install --no-progress --ansi
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Unit Tests Checks

on:
pull_request:

jobs:
unittests:
strategy:
matrix:
php-version: [ '7.2', '8.0' ]
name: PHPUnit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
# test the lowest version, to make sure checks pass on it
php-version: ${{ matrix.php-version }}
extensions: json, mbstring, pdo, curl, pdo_sqlite
coverage: none
- name: Initialise
run: |
sudo composer self-update -q
- name: Install dependencies
run: |
sudo COMPOSER_MEMORY_LIMIT=-1 COMPOSER_PROCESS_TIMEOUT=60 composer update --prefer-dist --no-progress
- name: run PHP Unit
run: ./vendor/bin/phpunit
55 changes: 0 additions & 55 deletions .travis.yml

This file was deleted.

Loading