Run validations on master
@@ -8,6 +8,9 @@ on:
branches:
- master
+env:
+ CHANGED: ${{ github.event_name == 'pull_request' && 'changed' || '' }}
+
jobs:
build:
runs-on: ubuntu-latest
@@ -46,39 +49,39 @@ jobs:
- name: Run configuration validation
run: |
- ddev validate config changed
+ ddev validate config $CHANGED
- name: Run dashboard validation
run: |
- ddev validate dashboards changed
+ ddev validate dashboards $CHANGED
# - name: Run HTTP wrapper validation
# run: |
-# ddev validate http changed
+# ddev validate http $CHANGED
- name: Run imports validation
run: |
- ddev validate imports changed
+ ddev validate imports $CHANGED
- name: Run JMX metrics validation
run: |
- ddev validate jmx-metrics changed
+ ddev validate jmx-metrics $CHANGED
- name: Run manifest validation
run: |
- ddev validate manifest changed
+ ddev validate manifest $CHANGED
- name: Run metadata validation
run: |
- ddev validate metadata changed
+ ddev validate metadata $CHANGED
- name: Run models validation
run: |
- ddev validate models changed
+ ddev validate models $CHANGED
- name: Run legacy signature validation
run: |
- ddev validate legacy-signature changed
+ ddev validate legacy-signature $CHANGED
- name: Run licenses validation
run: |
@@ -86,23 +89,23 @@ jobs:
- name: Run readmes validation
run: |
- ddev validate readmes changed
+ ddev validate readmes $CHANGED
- name: Run recommended monitors validation
run: |
- ddev validate recommended-monitors changed
+ ddev validate recommended-monitors $CHANGED
- name: Run package validation
run: |
- ddev validate package changed
+ ddev validate package $CHANGED
- name: Run saved views validation
run: |
- ddev validate saved-views changed
+ ddev validate saved-views $CHANGED
- name: Run service checks validation
run: |
- ddev validate service-checks changed
+ ddev validate service-checks $CHANGED
- name: Comment PR on failure
if: failure()
