Skip to content

Commit

Permalink
Add CI job names
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and spekulatius committed Nov 30, 2023
1 parent c3ba1c7 commit 696109a
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
on: [pull_request]

jobs:
## PHPUNIT
phpunit:
name: PHPUnit
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [8.1, 8.2, 8.3]
composer-flags: [null]
php-version: ['8.1', '8.2', '8.3']
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
extensions: intl curl
- run: php -v
- run: composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --prefer-dist --ansi
- run: composer update --no-interaction --no-progress --prefer-dist --ansi
- run: composer test:unit

## PHPSTAN
phpstan:
name: PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -32,17 +30,17 @@ jobs:
php-version: '8.1'
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPOSER_TOKEN: ${{ github.token }}
update: true

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: PHPStan tests
run: composer test:types

## RECTOR
rector:
name: Rector
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -54,17 +52,17 @@ jobs:
php-version: '8.1'
coverage: none
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPOSER_TOKEN: ${{ github.token }}
update: true

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: PHPStan tests
run: composer test:refactor

## PINT
pint:
name: Pint
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -77,11 +75,11 @@ jobs:
coverage: none
tools: cs2pr
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPOSER_TOKEN: ${{ github.token }}
update: true

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-progress --optimize-autoloader
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader

- name: Run Pint
run: ./vendor/bin/pint --test --format=checkstyle | cs2pr
run: composer exec -- pint --test --format=checkstyle | cs2pr

1 comment on commit 696109a

@manjesh-amibba
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to get raw HTML using this library ?

Please sign in to comment.