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

Update CI workflow #4

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

szepeviktor
Copy link
Contributor

@szepeviktor szepeviktor commented Jul 3, 2023

@lptn Please see comments below.

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove variable with one value only.

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1, 8.2]
php: ['8.1', '8.2']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prevent PHP versions from being YAML floating point values.

composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update ${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --ansi
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

COMPOSER_AUTH is unused.

composer update ${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest --ansi
env:
COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }}
composer update ${{ matrix.dependency-version }} --prefer-dist --no-interaction --ansi --with="laravel/framework:${{ matrix.laravel }}" --with="orchestra/testbench:${{ matrix.testbench }}"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Composer v2 introduced --with


- name: Execute tests
run: composer test
run: composer run test
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Distinguish Composer script names from Composer commands.

Copy link
Member

@alies-dev alies-dev left a comment

Choose a reason for hiding this comment

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

great improvements, as usually @szepeviktor !

@alies-dev alies-dev merged commit 3481a6e into InteractionDesignFoundation:main Jul 6, 2023
@szepeviktor szepeviktor deleted the patch-1 branch July 7, 2023 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants