Skip to content

Matrix strategy labels #26221

Answered by chrispat
robjmills asked this question in Actions
Discussion options

You must be logged in to vote

You could do something like:

name: PHP lints and tests workflow
on:
  push:

jobs:
php-lints-and-tests:
name: PHPStan ${{ matrix.legs.name }}
runs-on: ubuntu-latest
strategy:
matrix:
legs:
- {name: 'meaningful name', args: 'php -d memory_limit=-1 ./vendor/bin/phpstan analyse --no-progress --level=7 app/src' }
- {name: 'meaningful name 2', args: 'php -d display_errors=On -d memory_limit=512M vendor/bin/phpcs -p --encoding=utf-8 --standard=tests/phpcs-ruleset.xml --error-severity=1 app/src' }
- {name: 'meaningful naem 3', args: 'php -d display_errors=On -d memory_limit=512M -d date.timezone=UTC vendor/bin/phpunit -c phpunitall.xml.dist' }
steps:
- name: Checkout
uses: actions/checkout@v2

  -…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants