Merge pull request #13344 from Budibase/pull-images-prior-to-tests
Pull images separately from tests, enable testcontainers debug logs.
This commit is contained in:
commit
030ee5a5c5
|
@ -138,6 +138,8 @@ jobs:
|
||||||
|
|
||||||
test-server:
|
test-server:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
DEBUG: testcontainers,testcontainers:exec,testcontainers:build,testcontainers:pull
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -151,7 +153,19 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: yarn
|
cache: yarn
|
||||||
|
|
||||||
|
- name: Pull testcontainers images
|
||||||
|
run: |
|
||||||
|
docker pull mcr.microsoft.com/mssql/server:2022-latest
|
||||||
|
docker pull mysql:8.3
|
||||||
|
docker pull postgres:16.1-bullseye
|
||||||
|
docker pull mongo:7.0-jammy
|
||||||
|
docker pull mariadb:lts
|
||||||
|
docker pull testcontainers/ryuk:0.3.0
|
||||||
|
docker pull budibase/couchdb
|
||||||
|
|
||||||
- run: yarn --frozen-lockfile
|
- run: yarn --frozen-lockfile
|
||||||
|
|
||||||
- name: Test server
|
- name: Test server
|
||||||
run: |
|
run: |
|
||||||
if ${{ env.USE_NX_AFFECTED }}; then
|
if ${{ env.USE_NX_AFFECTED }}; then
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe("external search", () => {
|
||||||
const rows: Row[] = []
|
const rows: Row[] = []
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer("mysql")
|
const container = await new GenericContainer("mysql:8.3")
|
||||||
.withExposedPorts(3306)
|
.withExposedPorts(3306)
|
||||||
.withEnvironment({
|
.withEnvironment({
|
||||||
MYSQL_ROOT_PASSWORD: "admin",
|
MYSQL_ROOT_PASSWORD: "admin",
|
||||||
|
|
|
@ -6,7 +6,7 @@ describe("datasource validators", () => {
|
||||||
let config: any
|
let config: any
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer("mysql")
|
const container = await new GenericContainer("mysql:8.3")
|
||||||
.withExposedPorts(3306)
|
.withExposedPorts(3306)
|
||||||
.withEnv("MYSQL_ROOT_PASSWORD", "admin")
|
.withEnv("MYSQL_ROOT_PASSWORD", "admin")
|
||||||
.withEnv("MYSQL_DATABASE", "db")
|
.withEnv("MYSQL_DATABASE", "db")
|
||||||
|
|
|
@ -17,7 +17,7 @@ describe("getExternalSchema", () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer("postgres:13.12")
|
const container = await new GenericContainer("postgres:16.1-bullseye")
|
||||||
.withExposedPorts(5432)
|
.withExposedPorts(5432)
|
||||||
.withEnv("POSTGRES_PASSWORD", "password")
|
.withEnv("POSTGRES_PASSWORD", "password")
|
||||||
.start()
|
.start()
|
||||||
|
|
|
@ -26,7 +26,7 @@ describe("datasource validators", () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const user = generator.name()
|
const user = generator.name()
|
||||||
const password = generator.hash()
|
const password = generator.hash()
|
||||||
const container = await new GenericContainer("mongo")
|
const container = await new GenericContainer("mongo:7.0-jammy")
|
||||||
.withExposedPorts(27017)
|
.withExposedPorts(27017)
|
||||||
.withEnv("MONGO_INITDB_ROOT_USERNAME", user)
|
.withEnv("MONGO_INITDB_ROOT_USERNAME", user)
|
||||||
.withEnv("MONGO_INITDB_ROOT_PASSWORD", password)
|
.withEnv("MONGO_INITDB_ROOT_PASSWORD", password)
|
||||||
|
|
|
@ -13,7 +13,7 @@ describe("datasource validators", () => {
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer(
|
const container = await new GenericContainer(
|
||||||
"mcr.microsoft.com/mssql/server"
|
"mcr.microsoft.com/mssql/server:2022-latest"
|
||||||
)
|
)
|
||||||
.withExposedPorts(1433)
|
.withExposedPorts(1433)
|
||||||
.withEnv("ACCEPT_EULA", "Y")
|
.withEnv("ACCEPT_EULA", "Y")
|
||||||
|
|
|
@ -7,7 +7,7 @@ describe("datasource validators", () => {
|
||||||
let port: number
|
let port: number
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer("mysql")
|
const container = await new GenericContainer("mysql:8.3")
|
||||||
.withExposedPorts(3306)
|
.withExposedPorts(3306)
|
||||||
.withEnv("MYSQL_ROOT_PASSWORD", "admin")
|
.withEnv("MYSQL_ROOT_PASSWORD", "admin")
|
||||||
.withEnv("MYSQL_DATABASE", "db")
|
.withEnv("MYSQL_DATABASE", "db")
|
||||||
|
|
|
@ -9,7 +9,7 @@ describe("datasource validators", () => {
|
||||||
let port: number
|
let port: number
|
||||||
|
|
||||||
beforeAll(async () => {
|
beforeAll(async () => {
|
||||||
const container = await new GenericContainer("postgres")
|
const container = await new GenericContainer("postgres:16.1-bullseye")
|
||||||
.withExposedPorts(5432)
|
.withExposedPorts(5432)
|
||||||
.withEnv("POSTGRES_PASSWORD", "password")
|
.withEnv("POSTGRES_PASSWORD", "password")
|
||||||
.start()
|
.start()
|
||||||
|
|
Loading…
Reference in New Issue