diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 8c77c7a..80a8a55 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/backend/run.sh b/backend/run.sh index 9423046..9577b93 100755 --- a/backend/run.sh +++ b/backend/run.sh @@ -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."