generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
72 changed files
with
24,623 additions
and
26,802 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
name: tdm-server-test | ||
run-name: ${{ github.actor }} is running tests for the server | ||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- develop | ||
jobs: | ||
build: | ||
server-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
@@ -24,29 +25,6 @@ jobs: | |
run: npm install | ||
working-directory: server | ||
|
||
- name: Set up environment variables | ||
run: | | ||
echo "TEST_ENV=true" >> .env | ||
echo "PORT=5002" >> .env | ||
echo "NODE_OPTIONS=--trace-deprecation" >> .env | ||
echo "JWT_SECRET_KEY=testingSecretKey" >> .env | ||
echo "CLIENT_URL=http://localhost:3001" >> .env | ||
echo "SERVER_URL=http://localhost:5002" >> .env | ||
echo "SENDGRID_API_KEY=SG.testAPIkey" >> .env | ||
echo "[email protected]" >> .env | ||
echo "EMAIL_PUBLIC_COMMENT_LA_CITY=tdm+devpubliccommentplanning@test.org" >> .env | ||
echo "[email protected]" >> .env | ||
echo "APPLICATIONINSIGHTS_CONNECTION_STRING=InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com/;LiveEndpoint=https://westus.livediagnostics.monitor.azure.com/" >> .env | ||
echo "[email protected]" >> .env | ||
echo "SECURITY_ADMIN_PASSWORD=Dogfood1!" >> .env | ||
echo "SQL_SERVER_NAME=localhost" >> .env | ||
echo "SQL_SERVER_PORT=1434" >> .env | ||
echo "SQL_DATABASE_NAME=tdmtestdb" >> .env | ||
echo "SQL_USER_NAME=sa" >> .env | ||
echo "SQL_PASSWORD=TestPassw0rd" >> .env | ||
echo "SQL_ENCRYPT=false" >> .env | ||
working-directory: server | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,3 +260,5 @@ dotenv | |
yarn.lock | ||
|
||
.mssql.json | ||
server/.env-ale | ||
server/.env-alpha |
Oops, something went wrong.