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

GitHub Actions #15

Open
wants to merge 7 commits into
base: 2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md → .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- Fall back to `app.locale`, if `app.locales` is not set when determining configures languages.
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md → .github/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# webflorist/routetree
# 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:
Expand Down Expand Up @@ -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).
* **trans_by_route**: Translates page-content using the current node's content-language-file (see section `Auto-translation of regular page-content` above).
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build

on:
push:
branches:
- msnwalt-github-actions
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]
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