Skip to content

Releases: NxtLvLSoftware/run-phpstan-pmmp-action

v1.0.2

30 Jan 18:28
71aac3c
Compare
Choose a tag to compare

Pin run-phpstan-action to v1.0.2 for bug fixes.

v1.0.1

30 Jan 17:43
4769f0a
Compare
Choose a tag to compare

Pin new versions of required actions to fix potential problems with GitHub authentication & remove non-essential files from the release build that aren't required for the action to run.

Updated README to include information about forwarding $GITHUB_TOKEN:

name: ...
on: [ push ]
jobs:
  test-code:
    name: Run Plugin Tests
    runs-on: ubuntu-20.04 # pmmp-php-build doesn't work on ubuntu-latest yet
    steps:
      - name: ...
        uses: actions/checkout@v3
      - name: ...
        uses: nxtlvlsoftware/run-phpstan-pmmp-action@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} // NEW

v1.0.0

25 Jan 05:56
Compare
Choose a tag to compare

GitHub action for running PHPStan analysis against PocketMine-MP
plugins and libraries in actions workflows. See setup-pmmp-phpstan-env-action for descriptions on provided phpstan.neon configurations.

How to use

Simple analysis of PocketMine plugins and libraries on GitHub Actions:

name: My PMMP Plugin Workflow
on: [ push ]
jobs:
  test-code:
    name: Run Plugin Tests
    runs-on: ubuntu-20.04 # pmmp-php-build doesn't work on ubuntu-latest yet
    steps:
      - name: Checkout source code
        uses: actions/checkout@v3
      - name: Run PHPStan
        uses: nxtlvlsoftware/run-phpstan-pmmp-action@v1

Or to lock the versions of any required tools/executables to known versions:

name: My PMMP Plugin Workflow
on: [ push ]
jobs:
  test-code:
    name: Run Plugin Tests
    runs-on: ubuntu-20.04 # pmmp-php-build doesn't work on ubuntu-latest yet
    steps:
      - name: Checkout source code
        uses: actions/checkout@v3
      - uses: nxtlvlsoftware/run-phpstan-pmmp-action@v1
        with:
          analyse: src
          config: tests/phpstan/action.phpstan.neon
          level: 9
          php-version: 8.0.18
          phpstan-version: 1.8.2
          pmmp-version: 4.6.1

License

nxtlvlsoftware/run-phpstan-pmmp-action is open-sourced software licensed under the MIT license.