Skip to content

Add checks on laravel-nestedset #144

Add checks on laravel-nestedset

Add checks on laravel-nestedset #144

Workflow file for this run

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/cancel-workflow-action@0.11.0
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@v4
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@v4
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@v4
with:
repository: 'LycheeOrg/laravel-nestedset'
- 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