# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Test projects"

on:
  push:
    branches:
      - "1.8.x"
    paths:
      - '.github/workflows/test-projects.yml'
      - 'phpstan'
      - 'phpstan.phar'
      - 'bootstrap.php'

jobs:
  test-projects:
    name: "Test projects"
    runs-on: "ubuntu-latest"

    strategy:
      matrix:
        repository:
          - "ondrejmirtes/lorem"

    steps:
      - uses: peter-evans/repository-dispatch@v2
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: "${{ matrix.repository }}"
          event-type: test_phpstan

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Test projects"

on:
  push:
    branches:
      - "1.8.x"
    paths:
      - '.github/workflows/test-projects.yml'
      - 'phpstan'
      - '.phar-checksum'
      - 'bootstrap.php'

jobs:
  test-projects:
    name: "Test projects"
    runs-on: "ubuntu-latest"

    strategy:
      matrix:
        repository:
          - "ondrejmirtes/lorem"

    steps:
      - uses: peter-evans/repository-dispatch@v2
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: "${{ matrix.repository }}"
          event-type: test_phpstan

Test projects only when PHAR checksum changes
Test projects only when PHAR checksum changes
