mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
compare diffent configurations
This commit is contained in:
parent
8e903f9a75
commit
68d2218ed0
69
.github/workflows/test_database.yml
vendored
69
.github/workflows/test_database.yml
vendored
@ -50,6 +50,36 @@ jobs:
|
||||
|
||||
- name: Database | reset
|
||||
run: docker compose -f docker-compose.yml -f docker-compose.reset.yml up --no-deps database
|
||||
|
||||
database_migration_test_turbo:
|
||||
if: needs.files-changed.outputs.database == 'true' || needs.files-changed.outputs.docker-compose == 'true' || needs.files-changed.outputs.mariadb == 'true'
|
||||
name: Database Migration Test - Up + Reset (Turbo)
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Database | docker-compose
|
||||
run: docker compose -f docker-compose.yml -f docker-compose.test.yml up --detach mariadb
|
||||
|
||||
- name: Install turbo
|
||||
run: yarn global add turbo@^2
|
||||
|
||||
- name: Prune database with turbos help
|
||||
run: turbo prune database
|
||||
|
||||
- name: install dependencies
|
||||
run: cd out && yarn install --frozen-lockfile --production=false
|
||||
|
||||
- name: Wait for MariaDB to be ready
|
||||
run: docker run --rm --network gradido_internal-net busybox sh -c 'until nc -z mariadb 3306; do echo waiting for db; sleep 1; done;'
|
||||
|
||||
- name: Database | up
|
||||
run: cd out && turbo up
|
||||
|
||||
- name: Database | reset
|
||||
run: cd out && turbo reset
|
||||
|
||||
lint:
|
||||
if: needs.files-changed.outputs.database == 'true'
|
||||
@ -61,4 +91,41 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Database | Lint
|
||||
run: cd database && yarn && yarn run lint
|
||||
run: cd database && yarn && yarn run lint
|
||||
|
||||
lint_bun:
|
||||
if: needs.files-changed.outputs.database == 'true'
|
||||
name: Lint - Database Up (Bun)
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
|
||||
- name: Database | Lint
|
||||
run: bun install && cd database && bunx --bun run lint
|
||||
|
||||
lint_turbo:
|
||||
if: needs.files-changed.outputs.database == 'true'
|
||||
name: Lint - Database Up (Turbo)
|
||||
needs: files-changed
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install turbo
|
||||
run: yarn global add turbo@^2
|
||||
|
||||
- name: Prune database with turbos help
|
||||
run: turbo prune database
|
||||
|
||||
- name: install dependencies
|
||||
run: cd out && yarn install --frozen-lockfile --production=false
|
||||
|
||||
- name: Database | Lint
|
||||
run: cd out && turbo lint
|
||||
@ -51,7 +51,7 @@ module.exports = {
|
||||
'import/no-nodejs-modules': 'off',
|
||||
'import/unambiguous': 'error',
|
||||
'import/default': 'error',
|
||||
'import/named': 'error',
|
||||
'import/named': 'off',
|
||||
'import/namespace': 'error',
|
||||
'import/no-absolute-path': 'error',
|
||||
// 'import/no-cycle': 'error',
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
"dependsOn": ["database#up"]
|
||||
},
|
||||
"start": {
|
||||
"dependsOn": ["database#up"]
|
||||
"dependsOn": ["database#up", "build"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user