From a188b8679a77853fec683aa62cc13906f524e542 Mon Sep 17 00:00:00 2001 From: Chris Gmyr Date: Fri, 17 Mar 2023 10:16:21 -0400 Subject: [PATCH] update GH actions (#631) * update GH actions * test tweaks * adjust formatting action * rm laravel dev-master for now * change formatting action back * drop style req * no failures --- .github/workflows/format.yaml | 2 +- .github/workflows/frameworks.yaml | 16 +++++----------- .github/workflows/standalone.yaml | 6 ++++-- .github/workflows/test.yaml | 8 +++++--- phpinsights.php | 2 +- 5 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index a2258246..ace835c5 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v1 with: diff --git a/.github/workflows/frameworks.yaml b/.github/workflows/frameworks.yaml index 2aa9b447..979de08e 100644 --- a/.github/workflows/frameworks.yaml +++ b/.github/workflows/frameworks.yaml @@ -14,7 +14,7 @@ jobs: matrix: os: [ubuntu-latest] version: ['^5.4', '@stable', '@dev'] # Test current LTS, current release, and future release - php: ['7.4', '8.0', '8.1'] + php: ['7.4', '8.0', '8.1', '8.2'] composer-version: [v2] include: - version: '^5.4' @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: phpinsights - name: Setup PHP @@ -86,23 +86,17 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - version: ['^9.0', '^8.0', 'dev-master'] - php: ['7.4', '8.0', '8.1'] + version: ['^9.0', '^8.0'] + php: ['7.4', '8.0', '8.1', '8.2'] composer-version: [v2] exclude: - version: '^9.0' php: '7.4' - - version: 'dev-master' - php: '7.4' - - version: 'dev-master' - php: '8.0' - env: - allow_failure: ${{ matrix.php == '8.1' || matrix.version == 'dev-master' }} name: "Laravel:${{ matrix.version }} - PHP${{ matrix.php }} - Composer ${{ matrix.composer-version }}" steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: phpinsights - name: Setup PHP diff --git a/.github/workflows/standalone.yaml b/.github/workflows/standalone.yaml index 62e0165a..71887b8b 100644 --- a/.github/workflows/standalone.yaml +++ b/.github/workflows/standalone.yaml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - php: ['7.4', '8.0', '8.1'] + php: ['7.4', '8.0', '8.1', '8.2'] dependency-version: [prefer-lowest, prefer-stable] composer-version: [v2] exclude: @@ -21,6 +21,8 @@ jobs: php: '8.0' - dependency-version: prefer-lowest php: '8.1' + - dependency-version: prefer-lowest + php: '8.2' name: ${{ matrix.php }} - ${{ matrix.os }} - Composer ${{ matrix.composer-version }} --${{ matrix.dependency-version }} steps: @@ -31,7 +33,7 @@ jobs: git config --system core.eol lf - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies uses: actions/cache@v1 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5b74e676..11d59969 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['7.4', '8.0', '8.1'] + php: ['7.4', '8.0', '8.1', '8.2'] dependency-version: [prefer-lowest, prefer-stable] composer-version: [ v2 ] exclude: @@ -19,14 +19,16 @@ jobs: php: '8.0' - dependency-version: prefer-lowest php: '8.1' + - dependency-version: prefer-lowest + php: '8.2' name: ${{ matrix.php }} - Composer ${{ matrix.composer-version }} --${{ matrix.dependency-version }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Cache dependencies - uses: actions/cache@v1 + uses: actions/cache@v3 with: path: ~/.composer/cache/files key: dependencies-php-${{ matrix.php }}-composer-${{ matrix.composer-version }} diff --git a/phpinsights.php b/phpinsights.php index fe4bac19..b92b9542 100644 --- a/phpinsights.php +++ b/phpinsights.php @@ -125,6 +125,6 @@ 'requirements' => [ 'min-quality' => 90.0, 'min-architecture' => 85.0, - 'min-style' => 98.0, + 'min-style' => 96.0, ], ];