csi: delete stale subvolumesnapshot #897
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Plugin Go test | |
on: | |
pull_request: | |
defaults: | |
run: | |
# reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell | |
shell: bash --noprofile --norc -eo pipefail -x {0} | |
# cancel the in-progress workflow when PR is refreshed. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
default-namespace: | |
runs-on: ubuntu-20.04 | |
env: | |
ROOK_PLUGIN_SKIP_PROMPTS: true | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: consider debugging | |
uses: ./.github/workflows/tmate_debug | |
with: | |
use-tmate: ${{ secrets.USE_TMATE }} | |
- name: plugin test | |
uses: ./.github/workflows/go-test-config | |
with: | |
op-ns: rook-ceph | |
cluster-ns: rook-ceph | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: collect common logs | |
if: always() | |
uses: ./.github/workflows/collect-logs | |
with: | |
name: go-test | |
- name: consider debugging | |
if: failure() | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
limit-access-to-actor: false | |
custom-namespace: | |
runs-on: ubuntu-20.04 | |
env: | |
ROOK_PLUGIN_SKIP_PROMPTS: true | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: consider debugging | |
if: failure() | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
use-tmate: ${{ secrets.USE_TMATE }} | |
- name: plugin test | |
uses: ./.github/workflows/go-test-config | |
with: | |
op-ns: test-operator | |
cluster-ns: test-cluster | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: collect common logs | |
if: always() | |
uses: ./.github/workflows/collect-logs | |
with: | |
name: go-test-custom-namespace | |
- name: consider debugging | |
if: failure() | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
limit-access-to-actor: false |