diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1a0d96d..7591d05 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,11 +52,11 @@ jobs: - run: npm run build # TODO: run postgres and sqlite in parallel - - run: DB=postgres npm run test - - run: DB=mariadb npm run test - - run: npm run test:cov - if: github.event_name == 'push' && matrix.node-version == '20.x' + - run: DB=postgres npm run test:cov + - run: DB=mariadb npm run test:cov + - run: DB=sqlite npm run test:cov - run: 'bash <(curl -s https://codecov.io/bash)' + if: github.event_name == 'push' && matrix.node-version == '20.x' - name: Semantic Release if: github.event_name == 'push' && matrix.node-version == '20.x' uses: cycjimmy/semantic-release-action@v3 diff --git a/docker-compose.yml b/docker-compose.yml index c381154..350801b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,7 @@ services: POSTGRES_PASSWORD: pass POSTGRES_DB: test ports: - - "${DB_PORT:-5432}:5432" + - "${POSTGRESS_DB_PORT:-5432}:5432" mariadb: container_name: mariadb_nestjs_paginate diff --git a/package.json b/package.json index f8697f7..a22dc97 100644 --- a/package.json +++ b/package.json @@ -47,6 +47,7 @@ "eslint-plugin-prettier": "^5.1.3", "fastify": "^4.26.2", "jest": "^29.7.0", + "mysql": "^2.18.1", "pg": "^8.12.0", "prettier": "^3.0.3", "reflect-metadata": "^0.1.14", @@ -55,8 +56,7 @@ "ts-jest": "^29.1.5", "ts-node": "^10.9.2", "typeorm": "^0.3.17", - "typescript": "^5.4.5", - "mysql": "^2.18.1" + "typescript": "^5.4.5" }, "dependencies": { "lodash": "^4.17.21" @@ -101,4 +101,4 @@ "master" ] } -} \ No newline at end of file +}