Skip to content

Commit

Permalink
minor updates on GitHub Action example into documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 17, 2023
1 parent df60b62 commit 02227bb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/usage/github-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Quick start, if your PHP runtime set up is not important for you.
```yaml
jobs:
php-lint:
name: Linting with overtrue/phplint
name: "PHPLint v9"

runs-on: ubuntu-latest

Expand All @@ -22,12 +22,12 @@ jobs:
## Use case 2
Otherwise, if you want to detect specific PHP features used by scripts depending of your PHP runtime, then use this case.
Otherwise, if you want to detect specific PHP features used by scripts depending on your PHP runtime, then use this case.
```yaml
jobs:
php-lint:
name: "Linting with overtrue/phplint"
name: "PHPLint v9"

runs-on: "${{ matrix.operating-system }}"

Expand All @@ -42,13 +42,14 @@ jobs:
php-version:
- "8.1"
- "8.2"
- "8.3"

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
repository: overtrue/phplint
repository: sebastianbergmann/phpunit

- name: Setup PHP runtime
uses: shivammathur/setup-php@v2
Expand All @@ -60,7 +61,7 @@ jobs:
run: |
curl -Ls https://github.com/overtrue/phplint/releases/latest/download/phplint.phar -o /usr/local/bin/phplint
chmod +x /usr/local/bin/phplint
/usr/local/bin/phplint -vvv --no-cache
/usr/local/bin/phplint --no-cache --no-progress -v
```
Follows steps:
Expand Down

0 comments on commit 02227bb

Please sign in to comment.