Skip to content

Commit d6b1067

Browse files
committed
Merge branch 'release/1.6.0'
2 parents f5a534f + a3908b9 commit d6b1067

File tree

146 files changed

+8139
-10796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+8139
-10796
lines changed

.env

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
11
COMPOSE_PROJECT_NAME=kunstdatabasen
22
COMPOSE_DOMAIN=kunstdatabasen.local.itkdev.dk
33

4+
# In all environments, the following files are loaded if they exist,
5+
# the latter taking precedence over the former:
6+
#
7+
# * .env contains default values for the environment variables needed by the app
8+
# * .env.local uncommitted file with local overrides
9+
# * .env.$APP_ENV committed environment-specific defaults
10+
# * .env.$APP_ENV.local uncommitted environment-specific overrides
11+
#
12+
# Real environment variables win over .env files.
13+
#
14+
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
15+
# https://symfony.com/doc/current/configuration/secrets.html
16+
#
17+
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
18+
# https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
19+
20+
###> symfony/framework-bundle ###
21+
APP_ENV=dev
22+
APP_SECRET=83a0940fa78a31b062599eb0973b38bc
23+
###< symfony/framework-bundle ###
24+
425
###> doctrine/doctrine-bundle ###
526
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
6-
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
7-
# For a PostgreSQL database, use: "postgresql://db_user:[email protected]:5432/db_name?serverVersion=11&charset=utf8"
827
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
9-
# Override to point to mariadb docker container.
28+
#
29+
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
30+
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=8.0.32&charset=utf8mb4"
31+
# DATABASE_URL="mysql://app:[email protected]:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
32+
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8"
1033
DATABASE_URL=mysql://db:db@mariadb:3306/db
11-
# Override to use mariadb as backend
12-
DATABASE_SERVER_VERSION='mariadb-10.3.13'
1334
###< doctrine/doctrine-bundle ###
1435

15-
APP_SECRET=NotSoSecretReplace
16-
1736
SUPPORT_MAIL=''
1837
SITEIMPROVE_KEY=''
38+
WEB_ACCESSIBILITY_STATEMENT_URL='https://www.was.digst.dk/kunstdatabasen'

.github/workflows/deployment_dev.yml

Lines changed: 0 additions & 60 deletions
This file was deleted.

.github/workflows/deployment_prod.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/pr.yaml

Lines changed: 33 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,30 @@
11
on: pull_request
22
name: Review
33
jobs:
4-
test-composer-files:
5-
name: Validate composer (PHP ${{ matrix.php }})
6-
runs-on: ubuntu-20.04
4+
changelog:
5+
runs-on: ubuntu-latest
6+
name: Changelog should be updated
77
strategy:
88
fail-fast: false
9-
matrix:
10-
php: ['7.3', '7.4']
119
steps:
12-
- uses: actions/checkout@master
13-
- name: Setup PHP, with composer and extensions
14-
uses: shivammathur/setup-php@master
15-
with:
16-
php-version: ${{ matrix.php }}
17-
extension-csv: ctype, dom, iconv, json
18-
coverage: none
19-
- name: Get composer cache directory
20-
id: composer-cache
21-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
22-
- uses: actions/cache@v1
23-
with:
24-
path: ${{ steps.composer-cache.outputs.dir }}
25-
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
26-
restore-keys: ${{ matrix.php }}-composer-
27-
- name: Validate composer files
28-
run: composer validate composer.json
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 2
14+
15+
- name: Git fetch
16+
run: git fetch
2917

30-
runner-phpcs:
31-
name: runner-phpcs (PHP ${{ matrix.php }})
18+
- name: Check that changelog has been updated.
19+
run: git diff --exit-code origin/${{ github.base_ref }} -- CHANGELOG.md && exit 1 || exit 0
20+
21+
test-composer-files:
22+
name: Validate composer (PHP ${{ matrix.php }})
3223
runs-on: ubuntu-20.04
3324
strategy:
3425
fail-fast: false
3526
matrix:
36-
php: ['7.3', '7.4']
27+
php: ['8.1']
3728
steps:
3829
- uses: actions/checkout@master
3930
- name: Setup PHP, with composer and extensions
@@ -42,30 +33,24 @@ jobs:
4233
php-version: ${{ matrix.php }}
4334
extension-csv: ctype, dom, iconv, json
4435
coverage: none
45-
- name: Get composer cache directory
46-
id: composer-cache
47-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
48-
- uses: actions/cache@v1
49-
with:
50-
path: ${{ steps.composer-cache.outputs.dir }}
51-
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
52-
restore-keys: ${{ matrix.php }}-composer-
53-
- name: Install Reviewdog
54-
run: wget -O - -q https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b $PWD/ v0.9.14
55-
- name: Install Dependencies
56-
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
57-
- name: PHPCS
58-
run: composer actions/phpcs | ./reviewdog -f=checkstyle -name=PHPCS -reporter=github-pr-check
59-
env:
60-
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
- name: Get composer cache directory
37+
id: composer-cache
38+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
39+
- uses: actions/cache@v1
40+
with:
41+
path: ${{ steps.composer-cache.outputs.dir }}
42+
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
43+
restore-keys: ${{ matrix.php }}-composer-
44+
- name: Validate composer files
45+
run: composer validate composer.json
6146

6247
phpcsfixer:
6348
name: PHP-CS-FIXER (PHP ${{ matrix.php }})
6449
runs-on: ubuntu-20.04
6550
strategy:
6651
fail-fast: false
6752
matrix:
68-
php: ['7.3', '7.4']
53+
php: ['8.1']
6954
steps:
7055
- uses: actions/checkout@master
7156
- name: Setup PHP, with composer and extensions
@@ -84,7 +69,7 @@ jobs:
8469
restore-keys: ${{ matrix.php }}-composer-
8570
- name: Install Dependencies
8671
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
87-
- name: phpcsfixerr
72+
- name: phpcsfixer
8873
run: composer actions/phpcsfixer
8974

9075
twigcs:
@@ -93,7 +78,7 @@ jobs:
9378
strategy:
9479
fail-fast: false
9580
matrix:
96-
php: ['7.3', '7.4']
81+
php: ['8.1']
9782
steps:
9883
- uses: actions/checkout@master
9984
- name: Setup PHP, with composer and extensions
@@ -122,11 +107,11 @@ jobs:
122107
- uses: actions/checkout@master
123108
- uses: actions/setup-node@v1
124109
with:
125-
node-version: '10.x'
110+
node-version: '18.x'
126111
- name: install
127112
run: yarn install
128113
- name: JS coding standards
129-
run: yarn check-coding-standards
114+
run: yarn coding-standards-check
130115

131116
test-yarn-build:
132117
name: Test yarn build assets
@@ -144,7 +129,7 @@ jobs:
144129
restore-keys: yarn-
145130

146131
- name: Install yarn packages
147-
run: docker run -v $PWD:/app:rw -v ${{ steps.yarn-cache.outputs.dir }}:/usr/local/share/.cache/yarn/v6:rw --workdir /app node:14 yarn install
132+
run: docker run -v $PWD:/app:rw -v ${{ steps.yarn-cache.outputs.dir }}:/usr/local/share/.cache/yarn/v6:rw --workdir /app node:18 yarn install
148133

149134
- name: Build assets
150-
run: docker run -v $PWD:/app:rw -v ${{ steps.yarn-cache.outputs.dir }}:/usr/local/share/.cache/yarn/v6:rw --workdir /app node:14 yarn build
135+
run: docker run -v $PWD:/app:rw -v ${{ steps.yarn-cache.outputs.dir }}:/usr/local/share/.cache/yarn/v6:rw --workdir /app node:18 yarn build

.gitignore

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
###> symfony/framework-bundle ###
32
/.env.local
43
/.env.local.php
@@ -21,15 +20,9 @@
2120
npm-debug.log
2221
yarn-error.log
2322
###< symfony/webpack-encore-bundle ###
24-
25-
###> squizlabs/php_codesniffer ###
26-
/.phpcs-cache
27-
/phpcs.xml
28-
###< squizlabs/php_codesniffer ###
29-
3023
###> friendsofphp/php-cs-fixer ###
31-
/.php_cs
32-
/.php_cs.cache
24+
/.php-cs-fixer.php
25+
/.php-cs-fixer.cache
3326
###< friendsofphp/php-cs-fixer ###
3427

3528
###> liip/imagine-bundle ###

.markdownlintrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
// @see https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.jsonc
3+
// MD013/line-length - Line length
4+
"MD013": {
5+
// Exclude code blocks
6+
"code_blocks": false
7+
}
8+
}
9+
10+
// Local Variables:
11+
// mode: json
12+
// End:

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This source file is subject to the MIT license.
1010
HEADER;
1111

12-
return PhpCsFixer\Config::create()
12+
return (new PhpCsFixer\Config())
1313
->setRiskyAllowed(true)
1414
->setRules(
1515
[

.php-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)