action.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Cluster Setup
  2. description: Cluster setup for integration test
  3. inputs:
  4. kubernetes-version:
  5. description: kubernetes version to use for the workflow
  6. required: true
  7. github-token:
  8. description: GITHUB_TOKEN from the calling workflow
  9. required: true
  10. runs:
  11. using: "composite"
  12. steps:
  13. - name: Free Disk Space (Ubuntu)
  14. uses: jlumbroso/free-disk-space@main
  15. with:
  16. # this might remove tools that are actually needed,
  17. # if set to "true" but frees about 6 GB
  18. tool-cache: true
  19. - name: setup golang
  20. uses: actions/setup-go@v2
  21. with:
  22. go-version: "1.21"
  23. - name: Setup Minikube
  24. shell: bash --noprofile --norc -eo pipefail -x {0}
  25. run: |
  26. tests/scripts/github-action-helper.sh install_minikube_with_none_driver ${{ inputs.kubernetes-version }}
  27. - name: print k8s cluster status
  28. shell: bash --noprofile --norc -eo pipefail -x {0}
  29. run: tests/scripts/github-action-helper.sh print_k8s_cluster_status
  30. # This step is required for all the integration tests except the canary tests
  31. - name: use local disk
  32. shell: bash --noprofile --norc -eo pipefail -x {0}
  33. run: tests/scripts/github-action-helper.sh use_local_disk_for_integration_test
  34. - name: build rook
  35. shell: bash --noprofile --norc -eo pipefail -x {0}
  36. run: tests/scripts/github-action-helper.sh build_rook