-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from abbadon1334/upgrade/3.1
- Loading branch information
Showing
29 changed files
with
1,030 additions
and
1,041 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,14 @@ | ||
categories: | ||
- title: "Breaking Changes" | ||
labels: | ||
- "BC-break" | ||
- title: "Major Features" | ||
labels: | ||
- "MAJOR" | ||
- title: "Documentation enhancements" | ||
labels: | ||
- "Documentation :books:" | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
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,15 @@ | ||
name: Build Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run Release Drafter | ||
uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,56 @@ | ||
name: Build Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**\.build' | ||
- 'release/*' | ||
- '!**\.gen' | ||
|
||
jobs: | ||
autocommit: | ||
name: Build Release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/mvorisek/image-php:latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.ref }} | ||
|
||
- name: Install PHP dependencies | ||
run: composer update --ansi --prefer-dist --no-interaction --no-progress --optimize-autoloader | ||
|
||
- name: Composer unset version | ||
run: composer config version --unset | ||
|
||
- name: Update composer.json | ||
run: >- | ||
php -r ' | ||
$f = __DIR__ . "/composer.json"; | ||
$data = json_decode(file_get_contents($f), true); | ||
foreach ($data as $k => $v) { | ||
if (preg_match("~^(.+)-release$~", $k, $matches)) { | ||
$data[$matches[1]] = $data[$k]; unset($data[$k]); | ||
} | ||
} | ||
$str = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . "\n"; | ||
echo $str; | ||
file_put_contents($f, $str); | ||
' | ||
- name: Composer validate config | ||
run: composer validate --strict --no-check-lock && composer normalize --dry-run --no-check-lock | ||
|
||
- name: Commit | ||
run: | | ||
git config --global user.name "$(git show -s --format='%an')" | ||
git config --global user.email "$(git show -s --format='%ae')" | ||
git add -A && git diff --staged && git commit -m "Build Release" | ||
- name: Push | ||
uses: ad-m/github-push-action@master | ||
with: | ||
branch: ${{ github.ref }}.gen | ||
force: true | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -14,3 +14,5 @@ docs/build | |
yarn.lock | ||
run_local.sh | ||
/coverage | ||
/bower_components/ | ||
/assets/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
default: | ||
suites: | ||
atk4_login: | ||
main: | ||
paths: | ||
features: '%paths.base%/tests-behat' | ||
contexts: | ||
- TextEditor\Behat\Context | ||
- Behat\MinkExtension\Context\MinkContext | ||
- Atk4\TextEditor\Behat\Context | ||
extensions: | ||
Behat\MinkExtension: | ||
show_cmd: 'open %s' | ||
base_url: 'http://127.0.0.1:8888/demos/' | ||
base_url: 'http://127.0.0.1:8888/demos' | ||
sessions: | ||
default: | ||
selenium2: | ||
browser: chrome | ||
wd_host: http://127.0.0.1:4444/wd/hub | ||
capabilities: | ||
chrome: | ||
switches: | ||
- "--headless" | ||
- "--disable-gpu" | ||
- "--window-size=1920,1080" | ||
- "--no-sandbox" | ||
browser: chrome | ||
wd_host: 'http://127.0.0.1:4444/wd/hub' | ||
capabilities: | ||
extra_capabilities: | ||
chrome: | ||
args: | ||
- '--no-sandbox' | ||
- '--headless' | ||
- '--disable-dev-shm-usage' | ||
- '--disable-gpu' | ||
- '--window-size=1920,1200' |
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 |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
"name": "atk4-trumbowyg", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"trumbowyg": "^2.19.0" | ||
"trumbowyg": "2.25.1" | ||
} | ||
} |
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 @@ | ||
ignore: | ||
- demos | ||
- docs | ||
- tools | ||
comment: false | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
target: auto | ||
threshold: 0.025 | ||
patch: false | ||
changes: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Atk4\TextEditor\Demos; | ||
|
||
use Atk4\Data\Persistence; | ||
use Atk4\Data\Schema\Migrator; | ||
use Atk4\TextEditor\Demos\Model\Post; | ||
|
||
require_once __DIR__ . '/../init-autoloader.php'; | ||
|
||
$sqliteFile = __DIR__ . '/db.sqlite'; | ||
if (!file_exists($sqliteFile)) { | ||
new Persistence\Sql('sqlite:' . $sqliteFile); | ||
} | ||
unset($sqliteFile); | ||
|
||
/** @var Persistence\Sql $db */ | ||
require_once __DIR__ . '/../init-db.php'; | ||
|
||
echo 'GITHUB_JOB : ' . getenv('GITHUB_JOB') . "\n\n"; | ||
|
||
(new Migrator(new Post($db)))->create(); | ||
|
||
echo 'import complete!' . "\n\n"; |
Oops, something went wrong.