Skip to content
Merged
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
61 changes: 61 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template_api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
## API PR Checklist

### Pre-requisites

- [ ] I have gone through the Contributing guidelines for [Submitting a Pull Request (PR)](../../CONTRIBUTING.md#submitting-a-pull-request-pr) and ensured that this is not a duplicate PR.
- [ ] I have performed preliminary testing using the [test suite](../../apps/api/OsmoX.postman_collection.json) to ensure that any existing features are not impacted and any new features are working as expected.
- [ ] I have updated the required [api docs](../../apps/api/docs/) as applicable.
- [ ] I have added/updated test cases to the [test suite](../../apps/api/OsmoX.postman_collection.json) as applicable

### PR Details

PR details have been updated as per the given format (see below)

- [ ] PR title adheres to the format specified in guidelines (e.g., `feat: add admin login endpoint`)
- [ ] Description has been added
- [ ] Related changes have been added (optional)
- [ ] Screenshots have been added (optional)
- [ ] Query request and response examples have been added (as applicable, in case added or updated)
- [ ] Documentation changes have been listed (as applicable)
- [ ] Test suite output is added (as applicable)
- [ ] Pending actions have been added (optional)
- [ ] Any other additional notes have been added (optional)

### Additional Information

- [ ] Appropriate label(s) have been added (`ready for review` should be added if the PR is ready to be reviewed)
- [ ] Assignee(s) and reviewer(s) have been added (optional)

---

**Description:**

Add brief description about the changes made in this PR and their purpose. This section can also include mention to any other PRs or issues if needed.

**Related changes:**

- Add short points about the different changes made within the files in this PR.

**Screenshots:**

Add any screenshots as required.

**Query request and response:**

- Add any query request body, cURL statement and response body for the made change or addition.

**Documentation changes:**

- Add a list of changes made to the API documents with brief descriptions.

**Test suite output:**

- Add the output of the status of different test cases in the testing suite.

**Pending actions:**

- Add list of any pending actions that have or would require to be done in this PR.

**Additional notes:**

- Add list of any additional notes you may want to convey in this PR.
44 changes: 44 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template_portal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
## Portal PR Checklist

### Pre-requisites

- [ ] I have gone through the Contributing guidelines for [Submitting a Pull Request (PR)](../../CONTRIBUTING.md#submitting-a-pull-request-pr) and ensured that this is not a duplicate PR.
- [ ] I have performed preliminary testing to ensure that any existing features are not impacted and any new features are working as expected.

### PR Details

PR details have been updated as per the given format (see below)

- [ ] PR title adheres to the format specified in guidelines (e.g., `feat: add admin login page`)
- [ ] Description has been added
- [ ] Related changes have been added (optional)
- [ ] Screenshots have been added (optional)
- [ ] Pending actions have been added (optional)
- [ ] Any other additional notes have been added (optional)

### Additional Information

- [ ] Appropriate label(s) have been added (`ready for review` should be added if the PR is ready to be reviewed)
- [ ] Assignee(s) and reviewer(s) have been added (optional)

---

**Description:**

Add brief description about the changes made in this PR and their purpose. This section can also include mention to any other PRs or issues if needed.

**Related changes:**

- Add short points about the different changes made within the files in this PR.

**Screenshots:**

Add any screenshots as required.

**Pending actions:**

- Add list of any pending actions that have or would require to be done in this PR.

**Additional notes:**

- Add list of any additional notes you may want to convey in this PR.
43 changes: 43 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Standard Angular App Flow

on:
pull_request:
branches: [ "main" ]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: cd apps/portal && npm install

- name: Run linting
run: cd apps/portal && npm run lint

build:
name: Build
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: cd apps/portal && npm install

- name: Build app
run: cd apps/portal && npm run build:prod
48 changes: 48 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Main Workflow

on:
pull_request:
branches:
- main

jobs:
choose-workflow:
runs-on: ubuntu-latest
outputs:
frontend: ${{ steps.set_frontend.outputs.frontend }}
backend: ${{ steps.set_backend.outputs.backend }}
steps:
- name: Set up Frontend
id: set_frontend
run: echo "::set-output name=frontend::false"
- name: Set up Backend
id: set_backend
run: echo "::set-output name=backend::false"
- name: Check for frontend changes
id: check_frontend_changes
run: |
# Check if there are changes in the frontend folder
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -qE '^apps/portal'; then
echo "::set-output name=frontend::true"
fi
- name: Check for backend changes
id: check_backend_changes
run: |
# Check if there are changes in the backend folder
if git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -qE '^apps/api'; then
echo "::set-output name=backend::true"
fi

run-workflows:
needs: choose-workflow
runs-on: ubuntu-latest
steps:
- name: Run Frontend Workflow
if: needs.choose-workflow.outputs.frontend == 'true'
run: echo "Run Frontend Workflow"
# You can replace the echo command with the actual command to trigger the frontend workflow

- name: Run Backend Workflow
if: needs.choose-workflow.outputs.backend == 'true'
run: echo "Run Backend Workflow"
# You can replace the echo command with the actual command to trigger the backend workflow
18 changes: 18 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# OS
.DS_Store

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
16 changes: 16 additions & 0 deletions apps/portal/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Editor configuration, see https://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
Loading