Move runtime ownership into druid-cli #308
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: PR Build | |
| on: | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "^1.24" | |
| - run: make test | |
| name: Unit tests | |
| integration-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "^1.24" | |
| - uses: azure/setup-kubectl@v4 | |
| - run: make test-integration | |
| name: Run CLI backend integration tests | |
| validate-api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "^1.24" | |
| - run: make validate-api | |
| name: Validate API | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "^1.24" | |
| - run: make build | |
| name: Build | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: build-artifacts | |
| path: | | |
| bin/druid | |
| bin/druid-coldstarter | |
| .docker/entrypoint.sh | |
| .docker/druid-install-command.sh | |
| prerelease: | |
| runs-on: ubuntu-latest | |
| needs: [unit-tests, integration-tests, validate-api, build] | |
| outputs: | |
| version: ${{ steps.version.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set prerelease version from PR number | |
| id: version | |
| run: echo "version=pr-${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT" | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: build-artifacts | |
| - name: Prerelease | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ steps.version.outputs.version }} | |
| prerelease: true | |
| files: | | |
| bin/druid | |
| bin/druid-coldstarter | |
| .docker/entrypoint.sh | |
| .docker/druid-install-command.sh | |
| docker-builds: | |
| needs: prerelease | |
| uses: ./.github/workflows/docker-builds.yml | |
| with: | |
| version_tag: ${{ needs.prerelease.outputs.version }} | |
| version: ${{ needs.prerelease.outputs.version }} | |
| is_pr: true | |
| secrets: | |
| DOCKERHUB_USERNAME: ${{ vars.DOCKERHUB_USERNAME }} | |
| DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} | |
| DRUID_ARTIFACTS_REGISTRY_USERNAME: ${{ vars.DRUID_ARTIFACTS_REGISTRY_USERNAME }} | |
| DRUID_ARTIFACTS_REGISTRY_TOKEN: ${{ secrets.DRUID_ARTIFACTS_REGISTRY_TOKEN }} |