mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-10 16:07:44 -06:00
Add token permissions for coverage-comment, fully qualify & use development environment in run.sh DB URL
This commit is contained in:
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@@ -2,6 +2,12 @@ name: Pytest
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
|
||||
# Required by MishaKav/pytest-coverage-comment
|
||||
permissions:
|
||||
checks: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -49,7 +49,7 @@ if $DATABASE_DEFINED; then
|
||||
else
|
||||
if $RAILWAY_AVAILABLE; then
|
||||
if $PROJECT_LINKED; then
|
||||
DATABASE_URL="$(railway variables -s Postgres --json | jq .DATABASE_PUBLIC_URL -cMr)" $COMMAND $@
|
||||
DATABASE_URL="$(railway variables --service Postgres --environment development --json | jq .DATABASE_PUBLIC_URL -cMr)" $COMMAND $@
|
||||
else
|
||||
echo "error: Railway project not linked."
|
||||
echo "Run 'railway link' to link the project."
|
||||
|
||||
Reference in New Issue
Block a user