sigs.k8s.io/kubebuilder/v3@v3.14.0/.github/workflows/testdata.yml (about) 1 name: Testdata verification 2 3 # Trigger the workflow on pull requests and direct pushes to any branch 4 on: 5 push: 6 pull_request: 7 8 jobs: 9 10 testdata: 11 name: Verify testdata directory 12 runs-on: ubuntu-latest 13 # Pull requests from the same repository won't trigger this checks as they were already triggered by the push 14 if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository 15 steps: 16 - name: Clone the code 17 uses: actions/checkout@v4 18 - name: Setup Go 19 uses: actions/setup-go@v5 20 with: 21 go-version: '~1.21' 22 - name: Remove pre-installed kustomize 23 # This step is needed as the following one tries to remove 24 # kustomize for each test but has no permission to do so 25 run: sudo rm -f /usr/local/bin/kustomize 26 - name: Verify testdata directory 27 run: make check-testdata 28 - name: Verify docs update 29 run: make check-docs