fix: changed from branches to tafs to run git workflow only on new tags #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Larastan | |
on: | |
push: | |
# This should disable running the workflow on branches, according to the | |
# on.<push|pull_request>.<branches|tags> GitHub Actions docs. | |
tags: | |
- '*' | |
paths: | |
- '**.php' | |
jobs: | |
phpstan: | |
strategy: | |
matrix: | |
php: ['8.2'] | |
laravel: ['^11.0'] | |
fail-fast: false | |
name: 'P${{ matrix.php }} - L${{ matrix.laravel }}' | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout code' | |
uses: 'actions/checkout@v4' | |
- name: 'Setup PHP' | |
uses: 'shivammathur/setup-php@v2' | |
with: | |
php-version: '${{ matrix.php }}' | |
extensions: 'dom, curl, libxml, mbstring, zip, fileinfo' | |
coverage: 'none' | |
- name: 'Change Composer config minimum-stability' | |
run: 'composer config minimum-stability stable' | |
- name: 'Change Composer config prefer-stable' | |
run: 'composer config prefer-stable false' | |
- name: 'Require Larastan dev version' | |
run: 'composer require larastan/larastan:@dev --no-update --no-interaction --no-progress' | |
- name: 'Install highest dependencies from composer.json' | |
run: "composer update --with='laravel/framework:${{ matrix.laravel }}' --no-interaction --no-progress" | |
- name: 'Execute static analysis' | |
run: 'composer run-script analyse' |