-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99be3d7
commit 7fab8a2
Showing
95 changed files
with
477 additions
and
644 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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: run-stub-tests | ||
|
||
on: [push, pull_request] | ||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
stub-test: | ||
|
@@ -11,7 +13,7 @@ jobs: | |
matrix: | ||
os: [ubuntu-22.04, windows-latest] | ||
php: [8.4, 8.3, 8.2] | ||
laravel: [11.0, 10.2] | ||
laravel: [10.2, 11.0] | ||
exclude: | ||
- php: 8.4 | ||
laravel: 10.0 | ||
|
@@ -33,17 +35,17 @@ jobs: | |
- name: Remove installed Splade (Unix) | ||
run: rm -rf vendor/protonemedia/laravel-splade | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: "matrix.os == 'ubuntu-22.04'" | ||
|
||
- name: Remove installed Splade (Windows) | ||
run: rd "vendor/protonemedia/laravel-splade" /s /q | ||
shell: cmd | ||
if: matrix.os == 'windows-latest' | ||
if: "matrix.os == 'windows-latest'" | ||
|
||
- name: Checkout code | ||
uses: actions/[email protected] | ||
with: | ||
path: "vendor/protonemedia/laravel-splade" | ||
path: vendor/protonemedia/laravel-splade | ||
|
||
- name: Install Splade | ||
run: | | ||
|
@@ -59,47 +61,47 @@ jobs: | |
run: | | ||
rm -rf node_modules/@protonemedia/laravel-splade/dist | ||
cp -R vendor/protonemedia/laravel-splade/dist node_modules/@protonemedia/laravel-splade/ | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: "matrix.os == 'ubuntu-22.04'" | ||
|
||
- name: Remove installed Splade and copy front-end build from Checkout (Windows) | ||
run: | | ||
rd "node_modules/@protonemedia/laravel-splade/dist" /s /q | ||
mkdir "node_modules/@protonemedia/laravel-splade/dist" | ||
xcopy "vendor/protonemedia/laravel-splade/dist" "node_modules/@protonemedia/laravel-splade/dist" /E /I | ||
shell: cmd | ||
if: matrix.os == 'windows-latest' | ||
if: "matrix.os == 'windows-latest'" | ||
|
||
- name: Compile assets | ||
run: npm run build | ||
|
||
- name: Run Laravel Server (Unix) | ||
run: php artisan serve & | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: "matrix.os == 'ubuntu-22.04'" | ||
|
||
- name: Run Test (Unix) | ||
run: php vendor/protonemedia/laravel-splade/TestStubs.php | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: "matrix.os == 'ubuntu-22.04'" | ||
|
||
- name: Run Laravel Server (Windows) and Run Test | ||
run: | | ||
start /b cmd /v:on /c "(php artisan serve) &" | ||
php vendor/protonemedia/laravel-splade/TestStubs.php | ||
shell: cmd | ||
if: matrix.os == 'windows-latest' | ||
if: "matrix.os == 'windows-latest'" | ||
|
||
- name: Start SSR server (Unix) | ||
run: | | ||
echo "SPLADE_SSR_ENABLED=true" >> .env | ||
node bootstrap/ssr/ssr.js & | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: "matrix.os == 'ubuntu-22.04'" | ||
|
||
- name: Run Test command (Unix) | ||
run: php artisan splade:ssr-test | ||
if: matrix.os == 'ubuntu-22.04' | ||
if: "matrix.os == 'ubuntu-22.04'" | ||
|
||
- name: Start SSR server (Windows) and Run Test command | ||
run: | | ||
echo "SPLADE_SSR_ENABLED=true" >> .env | ||
node bootstrap/ssr/ssr.js & | ||
php artisan splade:ssr-test | ||
if: matrix.os == 'windows-latest' | ||
if: "matrix.os == 'windows-latest'" |
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
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
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
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
Oops, something went wrong.