Skip to content

Commit 03137a9

Browse files
authored
Merge pull request #324 from bavix/develop
Trying to speed up tests in sqlite
2 parents ffc0e8b + e80e4d8 commit 03137a9

File tree

8 files changed

+3264
-724
lines changed

8 files changed

+3264
-724
lines changed

Diff for: .github/workflows/phpunits.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ jobs:
120120
./cc-test-reporter before-build
121121
122122
- name: Run test suite
123-
run: composer unit
123+
run: |
124+
if [[ $DB_CONNECTION == "testing" ]]; then
125+
composer paraunit
126+
else
127+
composer unit
128+
fi
124129
env:
125130
CACHE_DRIVER: ${{ matrix.caches }}
126131
DB_CONNECTION: ${{ matrix.databases }}

Diff for: composer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
},
5959
"scripts": {
6060
"docs": "@php -S localhost:3000 -t ./docs",
61-
"unit":"@php ./vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
61+
"unit":"@php vendor/bin/phpunit --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
62+
"paraunit":"@php vendor/bin/paratest --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
63+
"parabench":"@php ./vendor/bin/testbench package:test --parallel --coverage-xml=build/coverage-xml --log-junit=build/junit.xml",
6264
"infect": "@php vendor/bin/infection --coverage=build --min-msi=60 -j$(nproc)",
6365
"metrics": "@php vendor/bin/phpmetrics --config=phpmetrics.json",
6466
"stan": "@php vendor/bin/phpstan analyse -vvv --debug --memory-limit 2G -l 7 src/",

Diff for: docs/dist/bundle.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: docs/dist/bundle.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: docs/dist/bundle.js.LICENSE.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.2.2/LICENSE */
2+
13
/**
24
* Prism: Lightweight, robust, elegant syntax highlighting
35
*

Diff for: package-lock.json

+3,249-719
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"@bavix/cozy-house-kit": "^1.0.5",
1717
"axios": "^0.21.1",
1818
"css-loader": "^5.0.0",
19-
"docsify": "^4.12.0",
19+
"docsify": "^4.11.4",
2020
"lodash": "^4.17.20",
2121
"mini-css-extract-plugin": "^1.2.1",
2222
"prismjs": "^1.23.0",

Diff for: webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
22
const path = require('path');
33

44
module.exports = {
5+
mode: 'production',
56
entry: './docs/src/index.js',
67
plugins: [
78
new MiniCssExtractPlugin({

0 commit comments

Comments
 (0)