Add missing tls config for temporal (#1223) #3897
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: Bazel Test | |
| # Trigger the workflow on push and pull request events for the main branch | |
| on: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'website/**' | |
| - 'javascript/**' | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - 'docs/**' | |
| - 'website/**' | |
| - 'javascript/**' | |
| jobs: | |
| bazel-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| # Cache Bazel outputs | |
| - name: Cache Bazel Outputs | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/bazel | |
| key: bazel-main-${{ runner.os }}-${{ hashFiles('.bazelversion', 'MODULE.bazel', 'MODULE.bazel.lock') }} | |
| restore-keys: | | |
| bazel-main-${{ runner.os }}- | |
| # Run Bazel tests | |
| - name: Run Bazel Test | |
| run: ./tools/bazel test //go/... //proto/... --build_tests_only | |
| python-build: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./python | |
| steps: | |
| #---------------------------------------------- | |
| # Checkout repository first (required for local actions) | |
| #---------------------------------------------- | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch full history for git operations | |
| #---------------------------------------------- | |
| # Free disk space to prevent "No space left on device" errors | |
| #---------------------------------------------- | |
| - name: Free disk space | |
| run: | | |
| echo "Disk space before cleanup:" | |
| df -h | |
| # Remove large packages not needed for Python builds | |
| sudo rm -rf /usr/share/dotnet | |
| sudo rm -rf /usr/local/lib/android | |
| sudo rm -rf /opt/ghc | |
| sudo rm -rf /usr/local/share/powershell | |
| sudo rm -rf /usr/share/swift | |
| echo "Disk space after cleanup:" | |
| df -h | |
| #---------------------------------------------- | |
| # Setup Python and Poetry using composite action | |
| #---------------------------------------------- | |
| - name: Setup Python and Poetry | |
| uses: ./.github/actions/setup-python-poetry | |
| with: | |
| working-directory: './python' | |
| #---------------------------------------------- | |
| # run test suite | |
| #---------------------------------------------- | |
| - name: Run tests | |
| run: | | |
| poetry run pytest | |
| dirty-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Restore-only: reuse the cache saved by bazel-build (no redundant save) | |
| - name: Restore Bazel Cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| ~/.cache/bazel | |
| key: bazel-main-${{ runner.os }}-${{ hashFiles('.bazelversion', 'MODULE.bazel', 'MODULE.bazel.lock') }} | |
| restore-keys: | | |
| bazel-main-${{ runner.os }}- | |
| - name: Run Gazelle | |
| run: | | |
| tools/gazelle | |
| git diff --exit-code || (echo "BUILD.bazel files are not up to date. Please run gazelle before commit." && exit 1) | |
| - name: Check Go dependencies | |
| run: | | |
| cd go && ../tools/go mod tidy | |
| git diff --exit-code || (echo "go.mod or go.sum files are not up to date. Please run go mod tidy before commit." && exit 1) | |
| - name: Format Go files | |
| run: | | |
| tools/goimports -w go | |
| git diff --exit-code || (echo "Go files are not formatted. Please run goimports before commit." && exit 1) | |
| - name: Check proto-go is up to date | |
| run: | | |
| tools/gen-proto-go.sh | |
| git diff --exit-code || (echo "proto-go is out of date. Please run tools/gen-proto-go.sh before commit." && exit 1) |