Skip to content

Fix template/snapshot tests #10

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

Merged
merged 3 commits into from
Nov 19, 2020
Merged
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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@

/scripts/ export-ignore
/tests/ export-ignore

# Ensure the correct line endings are used in tests on Windows
* text=auto eol=lf
16 changes: 7 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: tests
on:
# Run action on every push
push:

# Run action at midnight to test against any updated dependencies
schedule:
- cron: '0 0 * * *'
Expand All @@ -15,17 +15,17 @@ jobs:
php: [7.4, 7.3, 7.2]
laravel: [8.*, 7.*, 6.*]
os: [ubuntu-latest, windows-latest]

# Unsupported combinations
exclude:
- laravel: 8.*
php: 7.2

# Continue running through matrix even if one combination fails
fail-fast: false

runs-on: ${{ matrix.os }}

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}

steps:
Expand All @@ -42,14 +42,12 @@ jobs:
run: |
# Install Laravel version per matrix
composer require --dev "laravel/framework:${{ matrix.laravel }}" --no-interaction

composer install --no-interaction

- name: Execute PHPUnit tests
# Update snapshots each time to deal with platform differences
# @see https://github.com/spatie/phpunit-snapshot-assertions/issues/105
run: vendor/bin/phpunit -d --update-snapshots --coverage-clover build/logs/clover.xml

run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

- name: Report coverage to Codecov
uses: codecov/codecov-action@v1
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<nav class="container mx-auto">
<ol class="p-4 rounded flex flex-wrap bg-gray-300 text-sm text-gray-800">
<li>
<a href="http://localhost" class="text-blue-600 hover:text-blue-900 hover:underline focus:text-blue-900 focus:underline">
Home
</a>
</li>
<li class="text-gray-500 px-2">
/
</li>
<li>
Blog
</li>
<li class="text-gray-500 px-2">
/
</li>
<li>
Sample Category
</li>
</ol>
</nav>