From f1ee65cb726c9fcd40f5c08a7fe5f429997d3626 Mon Sep 17 00:00:00 2001 From: Sergiy Petrov Date: Fri, 10 Mar 2023 16:51:59 +0200 Subject: [PATCH] Update tests.yml tests against php 8.1, 8.2 and laravel 9.x, 10.x --- .github/workflows/tests.yml | 40 ++++++++++++++++++++++++++++++++++--- bin/test-commands.sh | 8 +++++++- 2 files changed, 44 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc17d9f..cc1db36 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,26 +18,60 @@ jobs: strategy: fail-fast: true matrix: - php: [7.0.21, 7.1, 7.2, 7.3, 7.4, 8.0] + php: [7.0.21, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2] stability: [prefer-lowest, prefer-stable] - laravel: [5.5, 6.x, 7.x, 8.x] + laravel: [5.5, 6.x, 7.x, 8.x, 9.x, 10.x] exclude: - laravel: 5.5 php: 8.0 + - laravel: 5.5 + php: 8.1 + - laravel: 5.5 + php: 8.2 - laravel: 6.x php: 7.0.21 - laravel: 6.x php: 7.1 + - laravel: 6.x + php: 8.1 + - laravel: 6.x + php: 8.2 - laravel: 7.x php: 7.0.21 - laravel: 7.x php: 7.1 + - laravel: 7.x + php: 8.1 + - laravel: 7.x + php: 8.2 - laravel: 8.x php: 7.0.21 - laravel: 8.x php: 7.1 - laravel: 8.x php: 7.2 + - laravel: 9.x + php: 7.0.21 + - laravel: 9.x + php: 7.1 + - laravel: 9.x + php: 7.2 + - laravel: 9.x + php: 7.3 + - laravel: 9.x + php: 7.4 + - laravel: 10.x + php: 7.0.21 + - laravel: 10.x + php: 7.1 + - laravel: 10.x + php: 7.2 + - laravel: 10.x + php: 7.3 + - laravel: 10.x + php: 7.4 + - laravel: 10.x + php: 8.0 name: L${{ matrix.laravel }} - PHP ${{ matrix.php }} - ${{ matrix.stability }} @@ -70,4 +104,4 @@ jobs: chmod +x $GITHUB_WORKSPACE/bin/test-commands.sh cp $GITHUB_WORKSPACE/bin/test-commands.sh laravel-${{ matrix.laravel }} cd laravel-${{ matrix.laravel }} - ./test-commands.sh + ./test-commands.sh ${{ matrix.laravel }} diff --git a/bin/test-commands.sh b/bin/test-commands.sh index 3c3fbae..40a819a 100755 --- a/bin/test-commands.sh +++ b/bin/test-commands.sh @@ -27,7 +27,13 @@ fi examine "app/Providers" examine "app/Providers/RouteServiceProvider.php" examine "resources" -examine "resources/lang" + +if [ $1 = "9.x" ]; then + examine "lang" +elif [ $1 != "10.x" ]; then + examine "resources/lang" +fi + examine "resources/views" examine "resources/views/welcome.blade.php" lint "resources/views/welcome.blade.php"