-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into tim/mongoose-schemas
- Loading branch information
Showing
79 changed files
with
4,664 additions
and
3,152 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,7 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
env: { node: true, es2020: true }, | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
ignorePatterns: ['.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
}; |
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
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 |
---|---|---|
|
@@ -3,44 +3,40 @@ name: Clean up PR | |
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: deploy-${{ github.head_ref || github.run_id }} | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
clean-up-pr: | ||
runs-on: ubuntu-latest | ||
env: | ||
STAGING_PREFIX: staging-${{ github.event.pull_request.number }}. | ||
STAGE_NAME: staging-${{ github.event.pull_request.number }} | ||
|
||
steps: | ||
- name: Check Out Repo | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'npm' | ||
|
||
- name: Install Dependencies | ||
run: npm install | ||
env: | ||
HUSKY: 0 | ||
|
||
- name: Remove staging stack | ||
run: npx sst remove --stage ${{ format('staging-{0}', github.event.pull_request.number) }} backend && npx sst remove --stage ${{ format('staging-{0}', github.event.pull_request.number) }} frontend | ||
run: npx sst remove --stage staging-${{ github.event.pull_request.number }} | ||
env: | ||
CI: false | ||
PUBLIC_API_URL: ${{secrets.PUBLIC_API_URL}} | ||
PUBLIC_API_GRAPHQL_URL: ${{secrets.PUBLIC_API_GRAPHQL_URL}} | ||
MONGO_URL: ${{secrets.MONGO_URL}} | ||
SESSION_SECRET: ${{secrets.SESSION_SECRET}} | ||
GOOGLE_CLIENT: ${{secrets.GOOGLE_CLIENT}} | ||
GOOGLE_SECRET: ${{secrets.GOOGLE_SECRET}} | ||
GRECAPTCHA_SECRET: ${{secrets.GRECAPTCHA_SECRET}} | ||
ADMIN_EMAILS: ${{secrets.ADMIN_EMAILS}} | ||
PRODUCTION_DOMAIN: ${{secrets.PRODUCTION_DOMAIN}} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Deactivate deployment | ||
uses: strumwolf/[email protected] | ||
with: | ||
environment: staging-${{ github.event.pull_request.number }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
onlyDeactivateDeployments: true |
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
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,13 @@ | ||
# these are the minimum variables required to run the backend | ||
PUBLIC_API_URL=https://api-next.peterportal.org/v1/rest/ | ||
PUBLIC_API_GRAPHQL_URL=https://api-next.peterportal.org/v1/graphql | ||
PORT=8080 # should match the port on the frontend proxy under site/vite.config.ts | ||
|
||
# below are stubs of variables/secrets for MongoDB, google oauth, and recaptcha | ||
# these are necessary for features that require logging in | ||
# MONGO_URL=<secret> | ||
# SESSION_SECRET=<secret> | ||
# GOOGLE_CLIENT=<client> | ||
# GOOGLE_SECRET=<secret> | ||
# GRECAPTCHA_SECRET=<secret> | ||
# ADMIN_EMAILS=["<your email>"] |
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,10 +1,8 @@ | ||
/** @type {import('eslint').Linter.Config} */ | ||
module.exports = { | ||
root: true, | ||
env: { node: true, es2020: true }, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
}; |
Oops, something went wrong.