update #141
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: Test Impact | |
# Run this workflow every time a new commit pushed to your repository | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- 'v*' | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
# Allow manually triggering the workflow. | |
workflow_dispatch: | |
jobs: | |
kill_previous: | |
name: 0️⃣ Kill previous runs | |
runs-on: ubuntu-latest | |
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch. | |
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
execute_Lychee: | |
name: 1️⃣ PHP - Lychee | |
runs-on: ubuntu-latest | |
needs: | |
- kill_previous | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
tools: phpstan | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
repository: 'LycheeOrg/Lychee' | |
- name: Fix composer.json | |
run: composer require --dev -W "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}" | |
- name: Run PHPStan | |
run: vendor/bin/phpstan analyze | |
execute_php_exif: | |
name: 1️⃣ PHP - php-exif | |
runs-on: ubuntu-latest | |
needs: | |
- kill_previous | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
tools: phpstan | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
repository: 'LycheeOrg/php-exif' | |
- name: Fix composer.json | |
run: composer require --dev -W "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}" | |
- name: Run PHPStan | |
run: vendor/bin/phpstan analyze | |
execute_nested_sets: | |
name: 1️⃣ PHP - Nested sets | |
runs-on: ubuntu-latest | |
needs: | |
- kill_previous | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
id: extract_branch | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
coverage: none | |
tools: phpstan | |
env: | |
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
repository: 'LycheeOrg/laravel-nestedset' | |
ref: 'enable-phpstan' | |
- name: Fix composer.json | |
run: | | |
composer require --dev "lychee-org/phpstan-lychee":"dev-${{ steps.extract_branch.outputs.branch }}" | |
- name: Run PHPStan | |
run: vendor/bin/phpstan analyze |