GA Debug #10
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
# Optionally debug via SSH | |
# Ref: https://fleetdm.com/engineering/tips-for-github-actions-usability | |
# | |
# To use this step uncomment and place anywhere in the build steps. The build will pause on this step and | |
# output a ssh address associated with the Github action worker. Helpful for debugging build steps and | |
# and intermediary files/artifacts. | |
# | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
name: K8s Test | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: funnel | |
# - name: Setup tmate session | |
# uses: mxschmitt/action-tmate@v3 | |
- name: Install k3d | |
run: | | |
wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash | |
k3d cluster create test-cluster | |
helm repo add ohsu https://ohsu-comp-bio.github.io/helm-charts | |
helm upgrade --install funnel ohsu/funnel | |
kubectl wait --for=condition=Ready pod -l app=funnel | |
kubectl port-forward svc/funnel 8000:8000 & | |
- name: Submit Task | |
run: | | |
export PATH="$PATH:$(pwd)" | |
chmod +x funnel | |
funnel examples hello-world > hello-world.json | |
ID=$(funnel task create hello-world.json) | |
kubectl wait --for=condition=Complete job/$ID | |
# Exits 0 if the task is complete, otherwise exits 1 | |
funnel task get $ID | grep -q COMPLETE |