feat(CSI-308): add support for ReadWriteOncePod, ReadOnlyOncePod #1200
Workflow file for this run
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: sanity | |
on: | |
pull_request: | |
paths-ignore: | |
- '.github/**' | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
# through 1 to 9 | |
PLUGIN_VERBOSITY: ${{ vars.PLUGIN_VERBOSITY }} | |
# - ' ' | |
# - '-ginkgo.v' | |
# - '-ginkgo.vv' | |
SANITY_VERBOSITY: ${{ vars.SANITY_VERBOSITY }} | |
COMPOSE_DEFAULTS: '--exit-code-from=sanity --always-recreate-deps --force-recreate' | |
jobs: | |
build: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: echo "${{ secrets.WEKAFS_API_SECRET_YAML }}" > tests/csi-sanity/wekafs-api-secret.yaml | |
- uses: docker/setup-buildx-action@v3 | |
- uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKER_HUB_USERNAME }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- uses: docker/build-push-action@v6 | |
with: | |
context: . | |
file: tests/csi-sanity/ga-Dockerfile | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: sanity:latest | |
load: true | |
legacy_sanity: | |
needs: build | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-nosnapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: legacy_sanity | |
directory_volume_and_snapshots: | |
if: success() || failure() | |
needs: legacy_sanity | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-snapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: directory_volume_and_snapshots | |
directory_volume_and_snapshots_nfs: | |
if: success() || failure() | |
needs: directory_volume_and_snapshots | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-nfs-snapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: directory_volume_and_snapshots_nfs | |
snaphot_volumes_with_2nd_level_shapshots: | |
if: success() || failure() | |
needs: directory_volume_and_snapshots_nfs | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-snapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: snaphot_volumes_with_2nd_level_shapshots | |
snaphot_volumes_with_2nd_level_shapshots_nfs: | |
if: success() || failure() | |
needs: snaphot_volumes_with_2nd_level_shapshots | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-nfs-snapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: snaphot_volumes_with_2nd_level_shapshots_nfs | |
filesystem_volumes: | |
if: success() || failure() | |
needs: snaphot_volumes_with_2nd_level_shapshots_nfs | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-snapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: filesystem_volumes | |
filesystem_volumes_nfs: | |
if: success() || failure() | |
needs: filesystem_volumes | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- run: docker-compose -f tests/csi-sanity/docker-compose-nfs-snapshotcaps.yaml up $COMPOSE_DEFAULTS | |
env: | |
SANITY_FUNCTION: filesystem_volumes_nfs |