Skip to content

Commit

Permalink
test use actions instead of workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pweyck committed Aug 1, 2024
1 parent 3855bea commit 902dcda
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 31 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/admin.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Administration
on:
pull_request:
paths:
- '**/*.js'
- '**/*.ts'
- '**/*.html'
- '**/*.html.twig'
- .github/workflows/admin.yml
# paths:
# - '**/*.js'
# - '**/*.ts'
# - '**/*.html'
# - '**/*.html.twig'
# - .github/workflows/admin.yml
push:
paths:
- '**/*.js'
Expand All @@ -19,12 +19,15 @@ on:
schedule:
- cron: '0 3 * * *'


env:
# steps that use composite actions do not support passing env vars via `:env`
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

jobs:
unit:
uses: shopware/github-actions/.github/workflows/admin-jest.yml@main
uses: shopware/github-actions/.github/actions/admin-jest@add-composite-actions
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: trunk
uploadCoverage: true
secrets:
codecovToken: ${{ secrets.CODECOV_TOKEN }}
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
- master

jobs:
build:
uses: shopware/github-actions/.github/workflows/build-zip.yml@main
with:
extensionName: ${{ github.event.repository.name }}
phpunit:
runs-on: ubuntu-latest
steps:
- name: build
uses: shopware/github-actions/.github/actions/build-zip@add-composite-actions
with:
extensionName: ${{ github.event.repository.name }}
27 changes: 9 additions & 18 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,12 @@ on:
- cron: '0 3 * * *'

jobs:
cs:
if: github.event_name != 'schedule'
uses: shopware/github-actions/.github/workflows/cs-fixer.yml@main

phpstan:
uses: shopware/github-actions/.github/workflows/phpstan.yml@main
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: trunk

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 }}
build:
runs-on: ubuntu-latest
steps:
- name: phpunit
uses: shopware/github-actions/.github/actions/phpunit@add-composite-actions
with:
extensionName: ${{ github.event.repository.name }}
shopwareVersion: trunk
uploadCoverage: false

0 comments on commit 902dcda

Please sign in to comment.