Skip to content

Commit

Permalink
Skip database check during CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Aug 25, 2022
1 parent 7ef4718 commit 8234b42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on: [push]

env:
DATABASE_TYPE: postgresql
SKIP_DB_CHECK: 1

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "umami",
"version": "1.37.0",
"version": "1.38.0-beta.1",
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
"author": "Mike Cao <[email protected]>",
"license": "MIT",
Expand Down
5 changes: 5 additions & 0 deletions scripts/check-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ const chalk = require('chalk');
const spawn = require('cross-spawn');
const { execSync } = require('child_process');

if (process.env.SKIP_DB_CHECK) {
console.log('Skipping database check.');
process.exit(0);
}

const prisma = new PrismaClient();

function success(msg) {
Expand Down

0 comments on commit 8234b42

Please sign in to comment.