-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from for-ai/freddiev4/transfer-data
Add Aya UI, backend, and analytics app
- Loading branch information
Showing
247 changed files
with
38,132 additions
and
1 deletion.
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,23 @@ | ||
# What does this PR do? | ||
|
||
<!-- delete this line and add details --> | ||
|
||
## Where are the changes made? | ||
|
||
- [ ] Frontend | ||
- [ ] Backend | ||
- [ ] Misc (ops scripts, actions, analytics, etc) | ||
|
||
## Related Issue(s) | ||
|
||
<!-- delete this line and add issues --> | ||
|
||
## Screenshots (for UI changes) | ||
|
||
<!-- delete this line and add mobile and desktop screenshots for UI changes --> | ||
|
||
## These changes have been tested: | ||
|
||
- [ ] Manually | ||
- [ ] Via automated tests | ||
- [ ] Both |
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,34 @@ | ||
name: ESLint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- frontend/ | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- frontend/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 19 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: frontend | ||
|
||
- name: Run ESLint | ||
run: npm run lint | ||
working-directory: frontend |
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,38 @@ | ||
name: Lighthouse | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'frontend/**' | ||
|
||
jobs: | ||
lighthouse: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 19 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: frontend | ||
|
||
- name: Build frontend | ||
run: CI=false npm run build | ||
working-directory: frontend | ||
|
||
- name: Run Lighthouse CI | ||
run: | | ||
npm install -g @lhci/cli | ||
lhci autorun | ||
working-directory: frontend |
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,66 @@ | ||
name: Backend unit tests | ||
|
||
on: | ||
push: | ||
branches: [ "staging", "production"] | ||
pull_request: | ||
paths: | ||
- backend/** | ||
- docker/Dockerfile.postgres | ||
|
||
defaults: | ||
run: | ||
working-directory: ./backend | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
postgres: | ||
image: postgres:14 | ||
env: | ||
POSTGRES_USER: backendapp | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_DB: instruct_multilingual | ||
ports: | ||
- 5432:5432 | ||
# set health checks to wait until postgres has started | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: build and run postgres docker container | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./docker/ | ||
file: ./docker/Dockerfile.postgres | ||
push: false | ||
tags: database:latest | ||
|
||
- name: set up python 3.10 | ||
id: pythonsetup | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: install dependencies | ||
if: steps.pythonsetup.outcome == 'success' | ||
id: dependencies | ||
run: | | ||
pip install -U pip | ||
pip install poetry | ||
poetry install --with dev | ||
- name: run pytest unit tests | ||
if: steps.dependencies.outcome == 'success' | ||
run: | | ||
ENVIRONMENT=test poetry run pytest |
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,34 @@ | ||
name: NPM Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- frontend/ | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- frontend/** | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 19 | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
working-directory: frontend | ||
|
||
- name: Run tests | ||
run: npm test | ||
working-directory: frontend |
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,52 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
*.csv | ||
*.ipynb_checkpoints/ | ||
|
||
# python auto generated files | ||
*__pycache__ | ||
*.pyc | ||
*.pyo | ||
|
||
# env files | ||
.env | ||
*.env.local | ||
*.env.staging* | ||
*.env.prod* | ||
*.env.team-instruct-multilingual-app.prod | ||
*.env.analytics-instruct-multilingual-app.prod | ||
.python-version | ||
|
||
# Project | ||
discord_credentials.json | ||
|
||
# ssl connections files | ||
*.pem | ||
|
||
# Coverage reports | ||
coverage | ||
|
||
# Lighthouse | ||
.lighthouseci |
Oops, something went wrong.