-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NTR - Use composable actions instead of workflows
- Loading branch information
Showing
7 changed files
with
571 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,20 +15,39 @@ on: | |
|
||
jobs: | ||
cs: | ||
if: github.event_name != 'schedule' | ||
uses: shopware/github-actions/.github/workflows/cs-fixer.yml@main | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
phpstan: | ||
uses: shopware/github-actions/.github/workflows/phpstan.yml@main | ||
with: | ||
extensionName: ${{ github.event.repository.name }} | ||
shopwareVersion: trunk | ||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: 8.2 | ||
tools: php-cs-fixer:3.51.0, cs2pr | ||
|
||
- name: Run PHP CS Fixer | ||
shell: bash | ||
run: php-cs-fixer fix . --dry-run [email protected],no_unused_imports --format=checkstyle | cs2pr | ||
|
||
phpunit: | ||
uses: shopware/github-actions/.github/workflows/phpunit.yml@main | ||
with: | ||
extensionName: ${{ github.event.repository.name }} | ||
shopwareVersion: trunk | ||
uploadCoverage: true | ||
secrets: | ||
codecovToken: ${{ secrets.CODECOV_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: shopware/github-actions/setup-extension@add-setup-extension-action | ||
with: | ||
extensionName: ${{ github.event.repository.name }} | ||
|
||
- name: Run PHPUnit | ||
shell: bash | ||
working-directory: custom/plugins/${{ github.event.repository.name }} | ||
run: ${{ github.workspace }}/vendor/bin/phpunit | ||
|
||
phpstan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: shopware/github-actions/setup-extension@add-setup-extension-action | ||
with: | ||
extensionName: ${{ github.event.repository.name }} | ||
- uses: shopware/github-actions/phpstan@add-setup-extension-action | ||
with: | ||
extensionName: ${{ github.event.repository.name }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.