Add docs for how users can go from versioned -> unversioned workers. #334
Workflow file for this run
This file contains hidden or 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: Integration Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| skaffold-build: | |
| name: Test Skaffold Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| check-latest: true | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Install Skaffold | |
| run: | | |
| curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64 | |
| sudo install skaffold /usr/local/bin/ | |
| skaffold config set --global collect-metrics false | |
| - name: Build worker-controller image | |
| run: | | |
| skaffold build --profile worker-controller --push=false | |
| - name: Build helloworld worker image | |
| run: | | |
| skaffold build --profile helloworld-worker --push=false | |
| # Verify that the demo worker patch applies successfully and builds. | |
| - name: Build helloworld worker image patch | |
| run: | | |
| git apply internal/demo/helloworld/changes/no-version-gate.patch | |
| skaffold build --profile helloworld-worker --push=false | |
| test-integration: | |
| name: Run Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| check-latest: true | |
| cache: true | |
| - name: Install Temporal CLI | |
| run: | | |
| curl -sSf https://temporal.download/cli.sh | sh | |
| echo "$HOME/.temporalio/bin" >> "$GITHUB_PATH" | |
| - name: Install kubectl | |
| uses: azure/setup-kubectl@v3 | |
| with: | |
| version: 'latest' | |
| - name: Install Helm | |
| uses: azure/setup-helm@v3 | |
| with: | |
| version: 'v3.14.3' | |
| - name: Install controller-gen | |
| run: | | |
| go install sigs.k8s.io/controller-tools/cmd/[email protected] | |
| - name: Install envtest | |
| run: | | |
| go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run integration tests | |
| run: make test-integration | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results | |
| path: | | |
| cover.out | |
| bin/ | |
| retention-days: 7 | |
| unit-test: | |
| name: Run Unit Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| check-latest: true | |
| cache: true | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run unit tests | |
| run: make test-unit | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: unit-test-results | |
| path: | | |
| cover.out | |
| bin/ | |
| retention-days: 7 | |
| go-vet: | |
| name: Run Go Vet | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: 'go.mod' | |
| check-latest: true | |
| cache: true | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run go vet | |
| run: go vet ./... |