Skip to content

Commit

Permalink
Update composer global require to use devanox/laravel-revive ^2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-chetan committed Jun 10, 2024
1 parent 80ce050 commit d940b02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
```
Expand All @@ -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
```
Expand Down Expand Up @@ -80,7 +87,7 @@ jobs:
ref: ${{ github.head_ref }}
- name: "revive"
uses: devanoxLtd/revive-action@v1
uses: devanoxLtd/revive-action@v2
with:
args: fix
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d940b02

Please sign in to comment.