|
29 | 29 | go-version: ${{ matrix.go-version }} |
30 | 30 | cache: true |
31 | 31 | - name: Test |
32 | | - run: if ( "$GO" -eq "1.22" ); then export GOEXPERIMENT=rangefunc; fi; go test -race -coverprofile unit.txt -covermode atomic -v ./... |
| 32 | + run: go test -race -coverprofile unit.txt -covermode atomic -v ./... |
33 | 33 | - name: Upload coverage report to Codecov |
34 | 34 | uses: codecov/codecov-action@v4 |
35 | 35 | with: |
@@ -78,10 +78,60 @@ jobs: |
78 | 78 | go-version: ${{ matrix.go-version }} |
79 | 79 | cache: true |
80 | 80 | - name: Integration test |
81 | | - run: if ( "$GO" -eq "1.22" ); then export GOEXPERIMENT=rangefunc; fi; go test -race -tags integration -coverpkg=./... -coverprofile integration-secure.txt -covermode atomic ./tests/integration |
| 81 | + run: go test -race -tags integration -coverpkg=./... -coverprofile integration.txt -covermode atomic ./tests/integration |
82 | 82 | - name: Upload Test secure connection coverage report to Codecov |
83 | 83 | uses: codecov/codecov-action@v4 |
84 | 84 | with: |
85 | | - file: ./integration-secure.txt |
| 85 | + file: ./integration.txt |
86 | 86 | flags: integration,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }} |
87 | | - name: integration-secure |
| 87 | + name: integration |
| 88 | + experiment: |
| 89 | + concurrency: |
| 90 | + group: integration-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}-${{ matrix.ydb-version }} |
| 91 | + cancel-in-progress: true |
| 92 | + runs-on: ubuntu-latest |
| 93 | + strategy: |
| 94 | + fail-fast: false |
| 95 | + matrix: |
| 96 | + go-version: [1.22.x] |
| 97 | + ydb-version: [24.1] |
| 98 | + services: |
| 99 | + ydb: |
| 100 | + image: ydbplatform/local-ydb:${{ matrix.ydb-version }} |
| 101 | + ports: |
| 102 | + - 2135:2135 |
| 103 | + - 2136:2136 |
| 104 | + - 8765:8765 |
| 105 | + volumes: |
| 106 | + - /tmp/ydb_certs:/ydb_certs |
| 107 | + env: |
| 108 | + YDB_LOCAL_SURVIVE_RESTART: true |
| 109 | + YDB_USE_IN_MEMORY_PDISKS: true |
| 110 | + YDB_TABLE_ENABLE_PREPARED_DDL: true |
| 111 | + options: '-h localhost' |
| 112 | + env: |
| 113 | + OS: ubuntu-latest |
| 114 | + GO: ${{ matrix.go-version }} |
| 115 | + YDB_VERSION: ${{ matrix.ydb-version }} |
| 116 | + YDB_CONNECTION_STRING: grpc://localhost:2136/local |
| 117 | + YDB_CONNECTION_STRING_SECURE: grpcs://localhost:2135/local |
| 118 | + YDB_SSL_ROOT_CERTIFICATES_FILE: /tmp/ydb_certs/ca.pem |
| 119 | + YDB_SESSIONS_SHUTDOWN_URLS: http://localhost:8765/actors/kqp_proxy?force_shutdown=all |
| 120 | + HIDE_APPLICATION_OUTPUT: 1 |
| 121 | + GOEXPERIMENT: rangefunc |
| 122 | + steps: |
| 123 | + - name: Checkout code |
| 124 | + uses: actions/checkout@v4 |
| 125 | + - name: Install Go |
| 126 | + uses: actions/setup-go@v5 |
| 127 | + with: |
| 128 | + go-version: ${{ matrix.go-version }} |
| 129 | + cache: true |
| 130 | + - name: Integration test |
| 131 | + run: go test -race -tags integration -coverpkg=./... -coverprofile experiment.txt -covermode atomic ./... |
| 132 | + - name: Upload Test secure connection coverage report to Codecov |
| 133 | + uses: codecov/codecov-action@v4 |
| 134 | + with: |
| 135 | + file: ./integration-secure.txt |
| 136 | + flags: experiment,${{ matrix.os }},go-${{ matrix.go-version }},ydb-${{ matrix.ydb-version }} |
| 137 | + name: experiment |
0 commit comments