From 4fcac4c39a1cb58061ed239148f2088e62ff2fde Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:03:49 +0100 Subject: [PATCH 1/7] try to start with github actions --- .github/workflows/build.yml | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..0e2d271 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,47 @@ +name: build + +on: + push: + branches: + - '*' + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [7.2, 7.3, 7.4] + laravel: [^6.0, ^7.0] + include: + - laravel: ^7.0 + testbench: ^5.0 + - laravel: ^6.0 + testbench: ^4.0 + + steps: + - name: Checkout package + uses: actions/checkout@v2 + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip + coverage: none + + - name: Install dependencies + run: composer require "laravel/framework=${{ matrix.laravel }}" "orchestra/testbench=${{ matrix.testbench }}" --prefer-dist --no-interaction --no-suggest + + - name: Run tests + run: vendor/bin/phpunit --verbose From 9d7a81710337aa499f7b1df9bc05b6e878624b55 Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:11:08 +0100 Subject: [PATCH 2/7] some changes --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0e2d271..d6e229f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,7 @@ name: build on: push: branches: - - '*' + - msnwalt-github-actions pull_request: schedule: - cron: '0 0 * * *' @@ -16,7 +16,7 @@ jobs: fail-fast: true matrix: php: [7.2, 7.3, 7.4] - laravel: [^6.0, ^7.0] + laravel: [^6.0] include: - laravel: ^7.0 testbench: ^5.0 From 86879841efec225ff2d6148ded636ed0b4db2e3c Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:14:37 +0100 Subject: [PATCH 3/7] Rename CHANGELOG.md to .github/CHANGELOG.md --- CHANGELOG.md => .github/CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename CHANGELOG.md => .github/CHANGELOG.md (98%) diff --git a/CHANGELOG.md b/.github/CHANGELOG.md similarity index 98% rename from CHANGELOG.md rename to .github/CHANGELOG.md index 61b72cd..f0022b4 100644 --- a/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -44,4 +44,4 @@ - Add parameter to create relative urls to various functions (e.g. `route_node_url()` helper function). Defaults to create absolute urls (previous standard-behaviour). - Add skip parameter to middleware-config for routes to bypass inherited middleware (thanks to moxx!). ### Changed -- Fall back to `app.locale`, if `app.locales` is not set when determining configures languages. \ No newline at end of file +- Fall back to `app.locale`, if `app.locales` is not set when determining configures languages. From 920120ac73f0b0c565e8e1f259c3c794636a3f2c Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:15:00 +0100 Subject: [PATCH 4/7] Rename LICENSE.md to .github/LICENSE.md --- LICENSE.md => .github/LICENSE.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE.md => .github/LICENSE.md (100%) diff --git a/LICENSE.md b/.github/LICENSE.md similarity index 100% rename from LICENSE.md rename to .github/LICENSE.md From e0b885ecbc9e774c56b5b41e9273e0f9d56b9966 Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:15:24 +0100 Subject: [PATCH 5/7] Rename README.md to .github/README.md --- README.md => .github/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename README.md => .github/README.md (99%) diff --git a/README.md b/.github/README.md similarity index 99% rename from README.md rename to .github/README.md index 5c5a649..c7403d9 100755 --- a/README.md +++ b/.github/README.md @@ -701,4 +701,4 @@ Several helper-functions are included with this package: * **route_node_url**: Shortcut for `route_node()->getUrl()`. -* **trans_by_route**: Translates page-content using the current node's content-language-file (see section `Auto-translation of regular page-content` above). \ No newline at end of file +* **trans_by_route**: Translates page-content using the current node's content-language-file (see section `Auto-translation of regular page-content` above). From ec249e8fa99dcd234895073ea94df7b3f89c3efc Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:17:23 +0100 Subject: [PATCH 6/7] Update README.md --- .github/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/README.md b/.github/README.md index c7403d9..50826fb 100755 --- a/.github/README.md +++ b/.github/README.md @@ -1,4 +1,5 @@ # webflorist/routetree +![build](https://github.com/msnwalt/routetree/workflows/build/badge.svg) **RouteTree: Advanced Route Management for Laravel (v5.5+ and v6)** This package includes a special API for creating and accessing Laravel-routes and route-related information. It's main concept is to create a hierarchical multi-language RouteTree using an expressive syntax (mostly mimicking Laravel's own). Using that hierarchy, RouteTree can be used to easily create: From db5f99e1bacf93d37f11c9201009826f8085986b Mon Sep 17 00:00:00 2001 From: MaSuNiPeWa Date: Tue, 10 Mar 2020 14:17:39 +0100 Subject: [PATCH 7/7] Update README.md --- .github/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/README.md b/.github/README.md index 50826fb..3c41375 100755 --- a/.github/README.md +++ b/.github/README.md @@ -1,5 +1,4 @@ -# webflorist/routetree -![build](https://github.com/msnwalt/routetree/workflows/build/badge.svg) +# webflorist/routetree ![build](https://github.com/msnwalt/routetree/workflows/build/badge.svg) **RouteTree: Advanced Route Management for Laravel (v5.5+ and v6)** This package includes a special API for creating and accessing Laravel-routes and route-related information. It's main concept is to create a hierarchical multi-language RouteTree using an expressive syntax (mostly mimicking Laravel's own). Using that hierarchy, RouteTree can be used to easily create: