Validate added migration file #14
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: Check task migrations | |
"on": | |
pull_request: | |
branches: [main] | |
jobs: | |
check: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create k8s Kind Cluster | |
uses: helm/kind-action@v1 | |
- name: Install command line tools | |
run: | | |
# TODO: install tkn, kubectl, yq | |
sudo apt-get install -y kubectl kustomize yq | |
curl -L https://github.com/tektoncd/cli/releases/download/v0.39.0/tkn_0.39.0_Linux_x86_64.tar.gz | \ | |
sudo tar -xz --no-same-owner -C /usr/bin/ tkn | |
- name: Run check | |
run: | | |
# Require name main | |
git branch main origin/main | |
# Make `git branch --show-current` works. | |
git checkout -b pr-verify | |
export IN_CLUSTER=1 | |
bash -x ./hack/validate-migration.sh |