diff --git a/.github/workflows/run-tests-cloud.yml b/.github/workflows/run-tests-cloud.yml new file mode 100644 index 00000000..930988bf --- /dev/null +++ b/.github/workflows/run-tests-cloud.yml @@ -0,0 +1,55 @@ +name: Cloud tests + +on: + push: + branches: + - main + pull_request: + workflow_dispatch: + +jobs: + run: + runs-on: ubuntu-latest + permissions: + contents: read + strategy: + fail-fast: true + matrix: + go: + - "oldstable" + - "stable" + steps: + - uses: actions/checkout@v6 + + - name: Install Go + uses: actions/setup-go@v6 + with: + go-version: ${{ matrix.go }} + + - name: Get Go environment + id: go-env + run: | + echo "::set-output name=cache::$(go env GOCACHE)" + echo "::set-output name=modcache::$(go env GOMODCACHE)" + + - name: Set up cache + uses: actions/cache@v5 + with: + path: | + ${{ steps.go-env.outputs.cache }} + ${{ steps.go-env.outputs.modcache }} + key: cloud-${{ runner.os }}-go${{ matrix.go }}-${{ hashFiles('**/go.sum') }} + restore-keys: | + cloud-${{ runner.os }}-go${{ matrix.go }}- + + - name: Run tests + env: + CLICKHOUSE_USE_DOCKER: false + CLICKHOUSE_USE_SSL: true + CLICKHOUSE_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT_PROD }} + CLICKHOUSE_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT_PROD }} + CLICKHOUSE_JWT: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_JWT_DESERT_VM_43_PROD }} + TESTCONTAINERS_RYUK_DISABLED: "true" + GOTOOLCHAIN: "local" + run: | + go test -v ./...