Skip to content

Commit

Permalink
Fix: Do not use ant on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Feb 2, 2023
1 parent c5985a1 commit ffa74e1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/integrate.yaml
Expand Up @@ -29,29 +29,29 @@ jobs:
with:
php-version: "${{ matrix.php-version }}"

- name: "Set up Java"
uses: "actions/setup-java@v3"
with:
distribution: "zulu"
java-version: "11"

- name: "Install dependencies with composer"
run: "composer install --no-interaction --optimize-autoloader --prefer-dist"

- name: "Install phive"
run: "ant getphive"
run: |
wget https://phar.io/releases/phive.phar
wget https://phar.io/releases/phive.phar.asc
gpg gpg-get-key --keyserver hkps.pool.sks-keyservers.net --recv-keys 0x9D8A98B29B2D5D79
gpg --verify phive.phar.asc phive.phar
chmod +x phive.phar
rm phive.phar.asc
- name: "Install dependencies with phive"
run: "ant -Dphive.bin=./phive.phar install-tools"
run: "phive install --copy --trust-gpg-keys 4AA394086372C20A,2A8299CE842DD38C,CF1A108D0E7AE720,2DE50EB60C013FFFA831040D12CE0F1D262429A5,E82B2FB314E9906E"

- name: "Run friendsofphp/php-cs-fixer"
run: "ant -Dphive.bin=./phive.phar php-cs-fixer"
run: "./tools/php-cs-fixer fix --dry-run"

- name: "Run phpstan/phpstan"
run: "ant -Dphive.bin=./phive.phar phpstan"
run: "./tools/phpstan"

- name: "Run vimeo/psalm"
run: "ant -Dphive.bin=./phive.phar psalm"
run: "./tools/psalm"

tests:
name: "Tests"
Expand Down

0 comments on commit ffa74e1

Please sign in to comment.