Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Do not use ant on GitHub Actions #404

Merged
merged 1 commit into from Apr 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 5 additions & 13 deletions .github/workflows/integrate.yaml
Expand Up @@ -28,30 +28,22 @@ jobs:
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-version }}"

- name: "Set up Java"
uses: "actions/setup-java@v3"
with:
distribution: "zulu"
java-version: "11"
tools: "phive"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would that be an option for you, @theseer?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works ;)

And depending on how it it installs it ;)


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

- name: "Install phive"
run: "ant getphive"

- 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,51C67305FFC2E5C0"

- 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