Skip to content

feat: add NamespaceQueue CRD and generated code #12639

feat: add NamespaceQueue CRD and generated code

feat: add NamespaceQueue CRD and generated code #12639

Workflow file for this run

name: Code Verify
on:
push:
branches:
- master
tags:
pull_request:
permissions: read-all
jobs:
verify:
runs-on: ubuntu-24.04
name: Verify codes, generated files
timeout-minutes: 40
env:
GOPATH: /home/runner/work/${{ github.repository }}
steps:
- name: Install Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: 1.25.x
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
fetch-depth: 0
path: ./src/github.com/${{ github.repository }}
- name: Set TAG from release config
run: |
cd ./src/github.com/${{ github.repository }}
if [[ -f .release-version ]]; then
TAG=$(cat .release-version | tr -d '\n\r')
echo "TAG=${TAG}" >> $GITHUB_ENV
echo "Using TAG from .release-version: ${TAG}"
else
echo "TAG=latest" >> $GITHUB_ENV
echo "Using default TAG=latest (.release-version file not found)"
fi
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
- name: Run verify test
run: |
make lint
make verify
make TAG=${{ env.TAG }} generate-yaml
make TAG=${{ env.TAG }} verify-generated-yaml
sudo make unit-test
working-directory: ./src/github.com/${{ github.repository }}
- name: Verify staging APIs generated code
run: |
echo "::group::Verifying staging APIs generated code"
cd staging/src/volcano.sh/apis
if ! bash hack/verify-codegen.sh; then
echo "::error::Staging APIs generated code is out of date"
echo "Please run: cd staging/src/volcano.sh/apis && bash hack/update-codegen.sh"
exit 1
fi
echo "Staging APIs generated code is up to date"
echo "::endgroup::"
working-directory: ./src/github.com/${{ github.repository }}