Skip to content

Commit abbdd2c

Browse files
authored
Merge pull request #10 from alberon/fix-template-tests
Fix template/snapshot tests
2 parents 4e7a537 + b22b1b9 commit abbdd2c

File tree

3 files changed

+32
-9
lines changed

3 files changed

+32
-9
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313

1414
/scripts/ export-ignore
1515
/tests/ export-ignore
16+
17+
# Ensure the correct line endings are used in tests on Windows
18+
* text=auto eol=lf

.github/workflows/tests.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: tests
33
on:
44
# Run action on every push
55
push:
6-
6+
77
# Run action at midnight to test against any updated dependencies
88
schedule:
99
- cron: '0 0 * * *'
@@ -15,17 +15,17 @@ jobs:
1515
php: [7.4, 7.3, 7.2]
1616
laravel: [8.*, 7.*, 6.*]
1717
os: [ubuntu-latest, windows-latest]
18-
18+
1919
# Unsupported combinations
2020
exclude:
2121
- laravel: 8.*
2222
php: 7.2
23-
23+
2424
# Continue running through matrix even if one combination fails
2525
fail-fast: false
2626

2727
runs-on: ${{ matrix.os }}
28-
28+
2929
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}
3030

3131
steps:
@@ -42,14 +42,12 @@ jobs:
4242
run: |
4343
# Install Laravel version per matrix
4444
composer require --dev "laravel/framework:${{ matrix.laravel }}" --no-interaction
45-
45+
4646
composer install --no-interaction
4747
4848
- name: Execute PHPUnit tests
49-
# Update snapshots each time to deal with platform differences
50-
# @see https://github.com/spatie/phpunit-snapshot-assertions/issues/105
51-
run: vendor/bin/phpunit -d --update-snapshots --coverage-clover build/logs/clover.xml
52-
49+
run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml
50+
5351
- name: Report coverage to Codecov
5452
uses: codecov/codecov-action@v1
5553
with:
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0"?>
2+
<nav class="container mx-auto">
3+
<ol class="p-4 rounded flex flex-wrap bg-gray-300 text-sm text-gray-800">
4+
<li>
5+
<a href="http://localhost" class="text-blue-600 hover:text-blue-900 hover:underline focus:text-blue-900 focus:underline">
6+
Home
7+
</a>
8+
</li>
9+
<li class="text-gray-500 px-2">
10+
/
11+
</li>
12+
<li>
13+
Blog
14+
</li>
15+
<li class="text-gray-500 px-2">
16+
/
17+
</li>
18+
<li>
19+
Sample Category
20+
</li>
21+
</ol>
22+
</nav>

0 commit comments

Comments
 (0)