Skip to content

Commit

Permalink
Revert "Revert "Revert "feat(ci): tests against shell workflow"""
Browse files Browse the repository at this point in the history
This reverts commit 50b1c94.
  • Loading branch information
jdre-c8y committed Jul 23, 2024
1 parent 5dc5e1b commit 6a3f256
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test-plugins-against-cockpit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
echo "::set-output name=plugins_version::${plugins_version}"
- name: Retrieve cached JSON previous test results files
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'schedule' }}
id: retrieve-cache
uses: actions/cache/restore@v4
with:
path: ./cache-files
key: test-plugins-against-shell-e2e-results

- name: Verify cache contents
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'schedule' }}
run: |
echo "Contents of the cache:"
mkdir -p ./cache-files
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
path: cypress/videos

- name: Create or update JSON file
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'schedule' }}
run: |
mkdir -p ./cache-files
file="./cache-files/${{ env.TAG }}-${{ env.PLUGINS_VERSION }}.json"
Expand All @@ -207,7 +207,7 @@ jobs:
cat $file
- name: Upload updated JSON file
if: ${{ github.event_name == 'pull_request' }}
if: ${{ github.event_name == 'schedule' }}
uses: actions/upload-artifact@v4
with:
name: updated-json-${{ matrix.version_data.tag }}-${{ matrix.version_data.version }}-${{ env.PLUGINS_VERSION }}
Expand All @@ -216,7 +216,7 @@ jobs:
cache-upload:
permissions:
actions: write
if: ${{ github.event_name == 'pull_request' && needs.collect-shell-versions.outputs.shell_versions != '[]' }}
if: ${{ github.event_name == 'schedule' && needs.collect-shell-versions.outputs.shell_versions != '[]' }}
needs: [collect-shell-versions, run-tests-against-shell]
runs-on: ubuntu-22.04
steps:
Expand Down Expand Up @@ -262,7 +262,7 @@ jobs:
key: test-plugins-against-shell-e2e-results

verify-cache:
if: ${{ github.event_name == 'pull_request' && needs.collect-shell-versions.outputs.shell_versions != '[]' }}
if: ${{ github.event_name == 'schedule' && needs.collect-shell-versions.outputs.shell_versions != '[]' }}
needs: [collect-shell-versions, build-plugins, run-tests-against-shell, cache-upload]
runs-on: ubuntu-22.04

Expand Down

0 comments on commit 6a3f256

Please sign in to comment.