Skip to content

Commit

Permalink
Switch things around
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 18, 2022
1 parent 1c8b236 commit 4019755
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions .github/workflows/phar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ jobs:
working-directory: "compiler"
run: "php bin/prepare"

- name: "Compile PHAR"
working-directory: "compiler/build"
run: "php box.phar compile --no-parallel"

- name: "Run PHAR"
working-directory: "compiler"
run: "../tmp/phpstan.phar list"

- uses: actions/upload-artifact@v2
with:
name: phar-file
path: tmp/phpstan.phar

- name: "Delete PHAR"
run: "rm tmp/phpstan.phar"

- name: "Set autoloader suffix"
run: "composer config autoloader-suffix PHPStanChecksum"

Expand All @@ -72,19 +88,6 @@ jobs:
- name: "Delete checksum PHAR"
run: "rm tmp/phpstan.phar"

- name: "Compile PHAR"
working-directory: "compiler/build"
run: "php box.phar compile --no-parallel"

- name: "Run PHAR"
working-directory: "compiler"
run: "../tmp/phpstan.phar list"

- uses: actions/upload-artifact@v2
with:
name: phar-file
path: tmp/phpstan.phar

integration-tests:
if: github.event_name == 'pull_request'
needs: compiler-tests
Expand Down

0 comments on commit 4019755

Please sign in to comment.