From cb98d16a7df2ae35d332b604e4a051fb322bc3ce Mon Sep 17 00:00:00 2001 From: Sebastian Feldmann Date: Fri, 16 Apr 2021 17:34:10 +0200 Subject: [PATCH] Build and test PHAR for every build --- .github/workflows/integration.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index bd174da4..a887bdbf 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -16,6 +16,9 @@ jobs: include: - php: "8.0" composeroptions: "--ignore-platform-req=php" + env: + PHAR: "build/phar/captainhook.phar" + steps: - uses: actions/checkout@master @@ -49,3 +52,15 @@ jobs: - name: Static code analysis run: tools/phpstan analyse + + - name: Validate configuration for humbug/box + run: tools/box validate box.json + + - name: Compile phar with humbug/box + run: tools/box compile + + - name: Show info about generated phar with humbug/box + run: tools/box info ${{ env.PHAR }} + + - name: Run phar + run: ${{ env.PHAR }} --help