Run the StyleCheck always even if tests skipped

This commit is contained in:
Mikhail f. Shiryaev 2022-02-03 12:35:53 +01:00
parent f4423937bd
commit 1e365111f2
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4
2 changed files with 6 additions and 0 deletions

View File

@ -86,6 +86,7 @@ jobs:
StyleCheck: StyleCheck:
needs: DockerHubPush needs: DockerHubPush
runs-on: [self-hosted, style-checker] runs-on: [self-hosted, style-checker]
if: ${{ success() || failure() }}
steps: steps:
- name: Set envs - name: Set envs
run: | run: |
@ -93,6 +94,8 @@ jobs:
TEMP_PATH=${{ runner.temp }}/style_check TEMP_PATH=${{ runner.temp }}/style_check
EOF EOF
- name: Download changed images - name: Download changed images
# even if artifact does not exist, e.g. on `do not test` label or failed Docker job
continue-on-error: true
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: changed_images name: changed_images

View File

@ -111,6 +111,7 @@ jobs:
StyleCheck: StyleCheck:
needs: DockerHubPush needs: DockerHubPush
runs-on: [self-hosted, style-checker] runs-on: [self-hosted, style-checker]
if: ${{ success() || failure() }}
steps: steps:
- name: Set envs - name: Set envs
run: | run: |
@ -118,6 +119,8 @@ jobs:
TEMP_PATH=${{ runner.temp }}/style_check TEMP_PATH=${{ runner.temp }}/style_check
EOF EOF
- name: Download changed images - name: Download changed images
# even if artifact does not exist, e.g. on `do not test` label or failed Docker job
continue-on-error: true
uses: actions/download-artifact@v2 uses: actions/download-artifact@v2
with: with:
name: changed_images name: changed_images