mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add file change check for stylelinting to test admin workflow
This commit is contained in:
parent
d411ca7682
commit
ef9ad7e4a8
6
.github/file-filters.yml
vendored
6
.github/file-filters.yml
vendored
@ -1,4 +1,8 @@
|
||||
# These file filter patterns are used by the action https://github.com/dorny/paths-filter
|
||||
|
||||
admin_locales: &admin_locales
|
||||
- 'admin/src/locales/**'
|
||||
- 'admin/src/locales/**'
|
||||
|
||||
admin_stylelinting: &admin_stylelinting
|
||||
- 'admin/{components,layouts,pages}/**/*.{scss,vue}'
|
||||
- 'admin/.stylelintrc.js'
|
||||
|
||||
3
.github/workflows/test-admin-interface.yml
vendored
3
.github/workflows/test-admin-interface.yml
vendored
@ -12,6 +12,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
admin_locales: ${{ steps.changes.outputs.admin_locales }}
|
||||
admin_stylelinting: ${{ steps.changes.outputs.admin_stylelinting }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3.3.0
|
||||
|
||||
@ -66,7 +67,9 @@ jobs:
|
||||
run: cd admin && yarn && yarn run lint
|
||||
|
||||
stylelint_admin:
|
||||
if: needs.files-changed.outputs.admin_stylelinting == 'true'
|
||||
name: Stylelint - Admin Interface
|
||||
needs: admin_stylelinting
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user