mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
chore: pin crdb version for unit tests (#7260)
* chore: pin crdb version for unit tests * use latest 23.1 version * use latest available 23.1 version
This commit is contained in:
parent
af4e0484d0
commit
8470649ecb
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -48,6 +48,7 @@ jobs:
|
||||
go_version: "1.21"
|
||||
core_cache_key: ${{ needs.core.outputs.cache_key }}
|
||||
core_cache_path: ${{ needs.core.outputs.cache_path }}
|
||||
crdb_version: "23.1.13"
|
||||
|
||||
core-integration-test:
|
||||
needs: core
|
||||
|
5
.github/workflows/core-unit-test.yml
vendored
5
.github/workflows/core-unit-test.yml
vendored
@ -12,6 +12,9 @@ on:
|
||||
core_cache_path:
|
||||
required: true
|
||||
type: string
|
||||
crdb_version:
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
test:
|
||||
@ -51,7 +54,7 @@ jobs:
|
||||
-
|
||||
name: test
|
||||
if: ${{ steps.cache.outputs.cache-hit != 'true' }}
|
||||
run: make core_unit_test
|
||||
run: export ZITADEL_CRDB_VERSION="${{ inputs.crdb_version }}" && make core_unit_test
|
||||
-
|
||||
name: publish coverage
|
||||
uses: codecov/codecov-action@v3.1.4
|
||||
|
@ -27,7 +27,7 @@ var (
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
ts, err := testserver.NewTestServer()
|
||||
ts, err := testserver.NewTestServer(testserver.CustomVersionOpt(os.Getenv("ZITADEL_CRDB_VERSION")))
|
||||
if err != nil {
|
||||
logging.WithFields("error", err).Fatal("unable to start db")
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ var (
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
ts, err := testserver.NewTestServer()
|
||||
ts, err := testserver.NewTestServer(testserver.CustomVersionOpt(os.Getenv("ZITADEL_CRDB_VERSION")))
|
||||
if err != nil {
|
||||
logging.WithFields("error", err).Fatal("unable to start db")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user