mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
add file change check for linting to test admin workflow
This commit is contained in:
parent
fd37107da3
commit
287659af06
6
.github/file-filters.yml
vendored
6
.github/file-filters.yml
vendored
@ -6,3 +6,9 @@ admin_locales: &admin_locales
|
||||
admin_stylelinting: &admin_stylelinting
|
||||
- 'admin/{components,layouts,pages}/**/*.{scss,vue}'
|
||||
- 'admin/.stylelintrc.js'
|
||||
|
||||
admin_linting: &admin_linting
|
||||
- 'admin/.eslint*'
|
||||
- 'admin/babel.config.js'
|
||||
- 'admin/package.json'
|
||||
- 'admin/**/*.{js,vue}'
|
||||
3
.github/workflows/test-admin-interface.yml
vendored
3
.github/workflows/test-admin-interface.yml
vendored
@ -11,6 +11,7 @@ jobs:
|
||||
name: Detect File Changes - Admin Interface
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
admin_linting: ${{ steps.changes.outputs.admin_linting }}
|
||||
admin_locales: ${{ steps.changes.outputs.admin_locales }}
|
||||
admin_stylelinting: ${{ steps.changes.outputs.admin_stylelinting }}
|
||||
steps:
|
||||
@ -57,7 +58,9 @@ jobs:
|
||||
token: ${{ github.token }}
|
||||
|
||||
lint_admin:
|
||||
if: needs.files-changed.outputs.admin_linting == 'true'
|
||||
name: Lint - Admin Interface
|
||||
needs:files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user