Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
irisslee committed Nov 23, 2023
2 parents 14c034b + eb121eb commit 1ac73ea
Show file tree
Hide file tree
Showing 72 changed files with 24,623 additions and 26,802 deletions.
26 changes: 2 additions & 24 deletions .github/workflows/tdm-server-tests.yml
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:
Expand All @@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,5 @@ dotenv
yarn.lock

.mssql.json
server/.env-ale
server/.env-alpha
Loading

0 comments on commit 1ac73ea

Please sign in to comment.