From d940b02d089a0f146a396f3ea1bb64ab2dd654c0 Mon Sep 17 00:00:00 2001 From: Mr Chetan Date: Mon, 10 Jun 2024 22:53:43 +0530 Subject: [PATCH] Update composer global require to use devanox/laravel-revive ^2.0 --- Dockerfile | 2 +- README.md | 15 +++++++++++---- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 52d916a..31a10b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM composer:latest -RUN composer global require devanox/laravel-revive ^1.0 --no-progress --dev +RUN composer global require devanox/laravel-revive ^2.0 --no-progress --dev ENV PATH="/tmp/vendor/bin:${PATH}" COPY "entrypoint.sh" "/entrypoint.sh" diff --git a/README.md b/README.md index 9b7c806..4c02cf7 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,15 @@ GitHub Action for the [Devanox Laravel Revive](https://github.com/devanoxLtd/revive) package. +If your project requires PHP 8.1 use `devanoxLtd/revive-action@v2` which pulls in Laravel Revive `2.x`. If your project requires PHP 8.0 use `devanoxLtd/revive-action@v1` which pulls in Laravel Revive `1.x`. +This action will not be able to find any additional scripts configured (`revive.json`) to run with Revive. You will have to install your dependencies and run Revive from there instead of using this action. + +> [!NOTE] +> This action will **always** use the latest version of Revive. +> If you run into situation where Revive passes locally but the action fails you should first try updating Revive locally. + ## Usage Use with [GitHub Actions](https://github.com/features/actions) @@ -24,7 +31,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: "revive" - uses: devanoxLtd/revive-action@v1 + uses: devanoxLtd/revive-action@v2 with: args: lint ``` @@ -49,7 +56,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: "revive" - uses: devanoxLtd/revive-action@v1 + uses: devanoxLtd/revive-action@v2 with: args: lint --using=tlint,pint ``` @@ -80,7 +87,7 @@ jobs: ref: ${{ github.head_ref }} - name: "revive" - uses: devanoxLtd/revive-action@v1 + uses: devanoxLtd/revive-action@v2 with: args: fix @@ -134,7 +141,7 @@ jobs: ref: ${{ github.head_ref }} - name: "Revive Fix" - uses: devanoxLtd/revive-action@v1 + uses: devanoxLtd/revive-action@v2 with: args: fix