Skip to content

Commit

Permalink
Replace lint action with duster lint
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmile committed Jul 3, 2024
1 parent f544cdb commit c6eb589
Showing 1 changed file with 12 additions and 43 deletions.
55 changes: 12 additions & 43 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,15 @@ on:
pull_request:

jobs:
phpcs:
name: PHPCS

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: composer install --no-interaction --no-suggest --ignore-platform-reqs

- name: PHPCS lint
run: vendor/bin/phpcs --warning-severity=0

tlint:
name: TLint

continue-on-error: false

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: posix, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
coverage: none

- name: Install dependencies
run: composer install --no-interaction --no-suggest --ignore-platform-reqs

- name: Tlint Lint
run: vendor/bin/tlint
duster:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: "Duster Lint"
uses: tighten/duster-action@v3
with:
args: lint

0 comments on commit c6eb589

Please sign in to comment.