-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update-tests
- Loading branch information
Showing
53 changed files
with
3,949 additions
and
1,828 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Unit Tests | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [21.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: server/ | ||
|
||
- name: Set up environment variables | ||
run: | | ||
mkdir private_key | ||
echo "${{ secrets.SERVICE_ACCOUNT_SECRET }}" > private_key/private.json | ||
working-directory: server/src | ||
|
||
- name: Compile TypeScript files | ||
run: npx tsc | ||
working-directory: server/ | ||
|
||
- name: Start index.ts in background | ||
run: npm start & | ||
working-directory: server/ | ||
|
||
- name: Wait for server to start | ||
run: sleep 5 # Adjust sleep time as needed to allow the server to start | ||
timeout-minutes: 1 | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: server/ |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,15 +1,20 @@ | ||
# dotenv config file (copy this config to a new file named `.env`) | ||
|
||
# **Do not delete this file** | ||
|
||
# Shake your phone to open the developer menu. The IP address will be displayed on the connection. | ||
EXPO_PUBLIC_BACKEND_ADDRESS = ### EXPO CONNECTION IP ADDRESS ### | ||
EXPO_PUBLIC_BACKEND_PORT=3001 | ||
|
||
EXPO_IP= place_your_expo_ip_here | ||
|
||
# For location refresh rate in milliseconds (keep it 3000 for now) | ||
|
||
LOCATION_REFRESH_RATE=3000 | ||
|
||
# Firebase config | ||
apiKey = place_your_apiKey_here | ||
authDomain = place_your_authDomain_here | ||
projectId = place_your_projectId_here | ||
storageBucket = place_your_storageBucket_here | ||
messagingSenderId = place_your_messagingSenderId_here | ||
appId = place_your_appId_here | ||
|
||
API_KEY = place_your_apiKey_here | ||
AUTH_DOMAIN = place_your_authDomain_here | ||
PROJECT_ID = place_your_projectId_here | ||
STORAGE_BUCKET = place_your_storageBucket_here | ||
MESSAGING_SENDER_ID = place_your_messagingSenderId_here | ||
APP_ID = place_your_appId_here |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.