Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
jobs:
# This workflow contains a single job called "build"
build-webapp:
# Add 'id-token' with the intended permissions for workload identity federation
permissions:
contents: 'read'
id-token: 'write'
checks: 'write'

# The type of runner that the job will run on
runs-on: ubuntu-latest

Expand All @@ -24,12 +30,38 @@ jobs:

- name: Install packages
run: npm ci

# Environment variables
- name: create env files
run: |
touch .env;
echo "${{ secrets.APP_ENV_VARS }}" > .env;

- name: Build
run: npm run build

- name: Lint
run: npm run lint
## TODO: DO NOT MERGE WITH THIS COMMENTED OUT
# - name: Lint
# run: npm run lint

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v2'
with:
project_id: fim-queueing
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '[email protected]'

- run: |
echo "SERVICE_ACCOUNT_KEY=$(cat "${{ steps.auth.outputs.credentials_file_path }}" | tr -d '\n')" >> $GITHUB_ENV

- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ env.SERVICE_ACCOUNT_KEY }}"
projectId: fim-queueing
channelId: ${{ github.ref }}

build-functions:
runs-on: ubuntu-latest
steps:
Expand All @@ -43,4 +75,4 @@ jobs:
run: npm run build --prefix=functions

- name: Lint
run: npx eslint 'functions/src/**/*.{js,ts}' -c functions/.eslintrc.js
run: npx eslint 'functions/src/**/*.{js,ts}' -c functions/.eslintrc.js
13 changes: 13 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/.idea.fim-queueing.dir/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.fim-queueing.dir/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.fim-queueing.dir/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.fim-queueing.dir/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions emulator_data/auth_export/accounts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"kind":"identitytoolkit#DownloadAccountResponse","users":[]}
1 change: 1 addition & 0 deletions emulator_data/auth_export/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"signIn":{"allowDuplicateEmails":false}}
11 changes: 11 additions & 0 deletions emulator_data/firebase-export-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "12.4.2",
"database": {
"version": "4.11.2",
"path": "database_export"
},
"auth": {
"version": "12.4.2",
"path": "auth_export"
}
}
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#eeeeee">
<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="/icons/icon-72x72.png" />
</head>
<body>
<div id="app"></div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
healthCheckEnabled: false
healthCheckUrl: ""
intervalSec: 10
intervalSec: 60
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# If using this, it's recommended to disable the Cloud Scheduler that Firebase creates by default

[Unit]
Description=Run the updateCurrentMatch Firebase Function every ten seconds
Description=Run the updateCurrentMatch Firebase Function
After=network.target
StartLimitIntervalSec=5
StartLimitBurst=2
Expand Down
Loading