rename file filter for admin test workflow

This commit is contained in:
mahula 2023-02-24 13:03:04 +01:00
parent adea7c1c15
commit 289ed452d1
2 changed files with 7 additions and 7 deletions

View File

@ -26,5 +26,5 @@ admin_docker_building: &admin_docker_building
- 'admin/Dockerfile'
- *admin_unit_testing
admin_main: &admin_main
admin: &admin
- 'admin/**/*'

View File

@ -12,7 +12,7 @@ jobs:
name: Detect File Changes - Admin Interface
runs-on: ubuntu-latest
outputs:
admin_main: ${{ steps.changes.outputs.admin_main }}
admin: ${{ steps.changes.outputs.admin }}
steps:
- uses: actions/checkout@v3.3.0
@ -25,7 +25,7 @@ jobs:
list-files: shell
build_test:
if: needs.files-changed.outputs.admin_main == 'true'
if: needs.files-changed.outputs.admin == 'true'
name: Docker Build Test - Admin Interface
needs: files-changed
runs-on: ubuntu-latest
@ -38,7 +38,7 @@ jobs:
run: docker build --target test -t "gradido/admin:test" admin/ --build-arg NODE_ENV="test"
unit_test:
if: needs.files-changed.outputs.admin_main == 'true'
if: needs.files-changed.outputs.admin == 'true'
name: Unit Tests - Admin Interface
needs: files-changed
runs-on: ubuntu-latest
@ -61,7 +61,7 @@ jobs:
token: ${{ github.token }}
lint:
if: needs.files-changed.outputs.admin_main == 'true'
if: needs.files-changed.outputs.admin == 'true'
name: Lint - Admin Interface
needs: files-changed
runs-on: ubuntu-latest
@ -73,7 +73,7 @@ jobs:
run: cd admin && yarn && yarn run lint
stylelint:
if: needs.files-changed.outputs.admin_main == 'true'
if: needs.files-changed.outputs.admin == 'true'
name: Stylelint - Admin Interface
needs: files-changed
runs-on: ubuntu-latest
@ -85,7 +85,7 @@ jobs:
run: cd admin && yarn && yarn run stylelint
locales:
if: needs.files-changed.outputs.admin_main == 'true'
if: needs.files-changed.outputs.admin == 'true'
name: Locales - Admin Interface
needs: files-changed
runs-on: ubuntu-latest