mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-11 10:07:47 -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]
|
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:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ if $DATABASE_DEFINED; then
|
|||||||
else
|
else
|
||||||
if $RAILWAY_AVAILABLE; then
|
if $RAILWAY_AVAILABLE; then
|
||||||
if $PROJECT_LINKED; 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
|
else
|
||||||
echo "error: Railway project not linked."
|
echo "error: Railway project not linked."
|
||||||
echo "Run 'railway link' to link the project."
|
echo "Run 'railway link' to link the project."
|
||||||
|
|||||||
Reference in New Issue
Block a user