Skip to content

Commit

Permalink
Added manual creation of a project version for Sentry monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Jan 26, 2025
1 parent 8369924 commit 9067b52
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ APP_TIMEZONE=America/New_York

# Sentry parameters
SENTRY_DSN=https://url.to.sentry.io/1234567890
SENTRY_ORG=org
SENTRY_PROJECT=project
SENTRY_AUTH_TOKEN=token

# Google Analytics and reCAPTCHA keys
ANALYTICS_ENABLED=false
Expand Down
5 changes: 4 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export VERSION=$(sentry-cli releases propose-version)
dotenv -e .env.local -e .env sentry-cli releases new "$VERSION" || true
cspell translations/** --no-summary --no-progress --no-must-find-files
rm -f var/data.db
touch var/data.db
php bin/console --env=test doctrine:schema:create --no-interaction
php bin/console --env=test doctrine:fixtures:load --no-interaction
vendor/bin/phpunit
vendor/bin/phpunit
dotenv -e .env.local -e .env sentry-cli releases finalize "$VERSION" || true
253 changes: 252 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
"chart.js": "~4.4",
"prettier": "~3.4",
"ts-loader": "~9.5",
"dotenv-cli": "~8.0",
"typescript": "~5.7",
"flag-icons": "~7.2",
"file-loader": "~6.2",
"webpack-cli": "~5.1",
"lint-staged": "~15.3",
"sass-loader": "~16.0",
"@sentry/cli": "~2.41",
"normalize.css": "~8.0",
"bootstrap-icons": "~1.11",
"webpack-notifier": "~1.15",
Expand Down

0 comments on commit 9067b52

Please sign in to comment.