augustin-wien / augustina-backend

An open-source web shop designed for selling magazines on the street.
GNU Affero General Public License v3.0
7 stars 0 forks source link

Github Actions CI does not load env variables entirely #86

Closed lebe1 closed 10 months ago

lebe1 commented 1 year ago

In handlers_test.go the TestOrders keeps creating a status 400 Error in the CI due to env variables that are only loaded in handlers_test.go but not in handlers.go. This has been proved within this commit. Since there is a check in handlers.go if the variable is not empty, the CI always gets stuck at this line. This test runs fine locally and you will receive a HTTP-response of status 200.