Skip to content

Commit

Permalink
Merge branch 'develop' into discharge-reason-integer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Dec 27, 2023
2 parents ac89007 + ce066ce commit cd67bdc
Show file tree
Hide file tree
Showing 46 changed files with 935 additions and 865 deletions.
69 changes: 45 additions & 24 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('package-lock.json', 'Dockerfile') }}
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('package-lock.json', 'Dockerfile') }}
Expand Down Expand Up @@ -149,7 +149,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ hashFiles('package-lock.json', 'Dockerfile') }}
Expand Down Expand Up @@ -188,6 +188,9 @@ jobs:
needs: build-staging
name: Deploy to staging GCP cluster
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Staging-GCP
url: https://care-staging.ohc.network/
Expand All @@ -201,20 +204,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand All @@ -230,6 +233,9 @@ jobs:
needs: build-production
name: Deploy to GKE Manipur
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Production-Manipur
url: https://care.mn.gov.in
Expand All @@ -243,20 +249,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand All @@ -272,6 +278,9 @@ jobs:
needs: build-production
name: Deploy to GKE Karnataka
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Production-Karnataka
url: https://karnataka.care
Expand All @@ -285,20 +294,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand All @@ -314,6 +323,9 @@ jobs:
needs: build-production
name: Deploy to GKE Sikkim
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Production-Sikkim
url: https://care.sikkim.gov.in
Expand All @@ -327,20 +339,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand All @@ -356,6 +368,9 @@ jobs:
needs: build-production
name: Deploy to GKE Assam
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Production-Assam
url: https://care.assam.gov.in
Expand All @@ -369,20 +384,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand All @@ -398,6 +413,9 @@ jobs:
needs: build-production
name: Deploy to GKE Nagaland
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Production - Nagaland
url: https://care.nagaland.gov.in
Expand All @@ -411,20 +429,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials, so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand All @@ -440,6 +458,9 @@ jobs:
needs: build-production
name: Deploy to GKE Meghalaya
runs-on: ubuntu-latest
- uses: actions/setup-node@v3
with:
node-version: '20'
environment:
name: Production-Meghalaya
url: https://care.meghealth.gov.in
Expand All @@ -453,20 +474,20 @@ jobs:
ref: main

# Setup gcloud CLI
- uses: google-github-actions/setup-gcloud@94337306dda8180d967a56932ceb4ddcf01edae7
- uses: google-github-actions/setup-gcloud@v2
with:
service_account_key: ${{ secrets.GKE_SA_KEY }}
project_id: ${{ secrets.GKE_PROJECT }}

# Get the GKE credentials, so we can deploy to the cluster
- uses: google-github-actions/get-gke-credentials@fb08709ba27618c31c09e014e1d8364b02e5042e
- uses: google-github-actions/get-gke-credentials@v2
with:
cluster_name: ${{ secrets.GKE_CLUSTER }}
location: ${{ secrets.GKE_ZONE }}
credentials: ${{ secrets.GKE_SA_KEY }}

- name: install kubectl
uses: azure/setup-kubectl@v3.0
uses: azure/setup-kubectl@v3
with:
version: "v1.23.6"
id: install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: '20'

- name: Install dependencies
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
# Checkout your code repository to scan
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand All @@ -30,7 +30,7 @@ jobs:

# Run open source static analysis tools
- name: Run OSSAR
uses: github/ossar-action@v1
uses: github/ossar-action@fae13e456b9973657a670eef6bccc3a4c2b5153d
id: ossar

# Upload results to the Security tab
Expand Down
1 change: 0 additions & 1 deletion cypress/e2e/facility_spec/facility_creation.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ describe("Facility Creation", () => {
.should("be.visible");
// verify the facility homepage
cy.visit("/facility");
cy.get("#removeicon").click();
manageUserPage.typeFacilitySearch(facilityName);
facilityPage.verifyFacilityBadgeContent(facilityName);
manageUserPage.assertFacilityInCard(facilityName);
Expand Down
Loading

0 comments on commit cd67bdc

Please sign in to comment.