Skip to content

fix(RHTAPREL-119): remove lingering extraData references #666

fix(RHTAPREL-119): remove lingering extraData references

fix(RHTAPREL-119): remove lingering extraData references #666

---
name: Tekton Task Tests
on:
pull_request:
branches: ['main']
paths:
- 'tasks/**'
jobs:
run-tekton-task-tests:
name: Run Tekton Task tests
runs-on: ubuntu-latest
steps:
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.4.0
- name: Check cluster info
run: |
kubectl cluster-info
- name: Install Tekton
timeout-minutes: 10
run: |
kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
echo -n Waiting for Tekton pods to appear..
while [ $(kubectl get pods --namespace tekton-pipelines -o name | wc -l) -lt 2 ]
do
sleep 1
echo -n .
done
echo " done"
echo Waiting for Tekton pods to be ready
for POD in $(kubectl get pods --namespace tekton-pipelines -o name)
do
kubectl wait --timeout=120s --for=condition=Ready $POD --namespace tekton-pipelines
done
kubectl get pods --namespace tekton-pipelines
- name: Checkout code
uses: actions/checkout@v3
- name: Get changed dirs
id: changed-dirs
uses: tj-actions/changed-files@v35
with:
files: |
tasks/**
dir_names: "true"
dir_names_max_depth: "4"
- name: Show changed dirs
run: |
echo ${{ steps.changed-dirs.outputs.all_changed_files }}
- name: Install tkn
if: steps.changed-dirs.outputs.any_changed == 'true'
uses: ./.github/actions/install-tkn
- name: Test Tekton tasks
if: steps.changed-dirs.outputs.any_changed == 'true'
run: .github/scripts/test_tekton_tasks.sh
env:
TASK_DIRS: ${{ steps.changed-dirs.outputs.all_changed_files }}