name: "test-plugins" description: "Test plugin that are passed as parameters" inputs: cache-key: description: "The packaged plugin's cache key" required: true plugin-list: description: "List of plugins to install from the cache" required: true package-extension: description: "Either 'rpm' or 'deb'. Needed to determine the package manager command (dnf or apt-get)." required: true runs: using: "composite" steps: - name: get the cached plugin uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2 with: path: ./*.${{ inputs.package-extension }} key: ${{ inputs.cache-key }} fail-on-cache-miss: true - name: Install, test and remove plugin shell: bash run: | [[ -f /.venv/bin/activate ]] && source /.venv/bin/activate python3 .github/scripts/test-all-plugins.py ${{ inputs.package-extension }} ${{ inputs.plugin-list }}