Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
dbc2a3e
refactor: removing user types
5yndr0m Jan 6, 2025
22070f0
refactor: change controller functions to match the changes to model
5yndr0m Jan 6, 2025
ce873f9
refactor: removed admin verifications
5yndr0m Jan 6, 2025
a2acd66
docs: created chage log
5yndr0m Jan 6, 2025
6c3788b
feat: Create daily-check.yml
5yndr0m Jan 6, 2025
f564ac6
Merge branch 'test' into development
5yndr0m Jan 6, 2025
3dc72a5
Merge pull request #25 from DisasterWatchHQ/development
5yndr0m Jan 6, 2025
12b3daa
chor: removing unncessary files
5yndr0m Jan 6, 2025
911f223
fix: fixed a typo
5yndr0m Jan 6, 2025
aa360bd
chor: code cleanup
5yndr0m Jan 6, 2025
69b493c
fix: these are deprecated
5yndr0m Jan 6, 2025
64458d7
chor: removed unncessary verification functions
5yndr0m Jan 6, 2025
5647adf
feat: function to check for verified users
5yndr0m Jan 6, 2025
781615b
chor: remove old function
5yndr0m Jan 6, 2025
55c4df8
fix: changed middleware function
RavisaraJayasundara Jan 6, 2025
8acf022
fix: fixed linting and commented verification check for now
RavisaraJayasundara Jan 6, 2025
3e9216c
feat: add validation and changed to suite new user changes
RavisaraJayasundara Jan 6, 2025
e2fbdd0
feat: removed user id from reports
5yndr0m Jan 6, 2025
503e64c
feat: updated the resources support multiple types of resources
5yndr0m Jan 6, 2025
18de975
feat: update create resource function
5yndr0m Jan 7, 2025
b8e372e
feat: update get facilities
5yndr0m Jan 7, 2025
0dcb9a6
feat: update all GET functions
5yndr0m Jan 7, 2025
c3380ed
feat: commenting this cause not used anymore
5yndr0m Jan 7, 2025
7349ce2
fix: fix duplicate indexing
5yndr0m Jan 7, 2025
3aafa01
chor: removing unused routes
5yndr0m Jan 17, 2025
e4cf950
feat: adding wanring model and controllers
5yndr0m Jan 17, 2025
9581cf9
fix: update the route index
5yndr0m Jan 17, 2025
f504ecc
fix: fixed a duplicate index warning
5yndr0m Jan 17, 2025
b7612c3
feat: update the userReport model
5yndr0m Jan 17, 2025
73b8e4d
feat: improve the controllers to match the model
5yndr0m Jan 17, 2025
c57585d
feat: update the routes
5yndr0m Jan 17, 2025
564483c
Merge pull request #27 from DisasterWatchHQ/development
5yndr0m Jan 21, 2025
cec2a07
Merge branch 'main' into test
5yndr0m Jan 21, 2025
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
53 changes: 53 additions & 0 deletions .github/workflows/daily-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Daily Check and Test

on:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC
push:
branches:
- development

jobs:
check_and_test:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Check for changes
id: check_changes
run: |
git fetch origin test
git diff --exit-code origin/development origin/test

- name: Push to test branch
if: steps.check_changes.outcome == 'failure'
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git checkout development
git push origin HEAD:test

- name: Run tests
if: steps.check_changes.outcome == 'failure'
run: |
npm install
npm test

- name: Notify via email
if: always()
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 587
username: ${{ secrets.SMTP_USERNAME }}
password: ${{ secrets.SMTP_PASSWORD }}
subject: Daily Test Results
to: [email protected]
from: [email protected]
content_type: text/html
body: |
Tests have passed successfully.
256 changes: 0 additions & 256 deletions __tests__/controllers/incidentReportsController.test.js

This file was deleted.

Loading
Loading