Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from bcgov/feat/apis
Browse files Browse the repository at this point in the history
Feat/apis
  • Loading branch information
mishraomp authored Mar 19, 2023
2 parents f4e1fba + 36e44d7 commit ecb966a
Show file tree
Hide file tree
Showing 277 changed files with 18,015 additions and 34,181 deletions.
24 changes: 0 additions & 24 deletions .eslintrc.js

This file was deleted.

79 changes: 61 additions & 18 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
add_markdown: |
---
Thanks for the PR!
Any successful deployments (not always required) will be available below.
[Backend](https://${{ env.PREFIX }}-backend.${{ env.DOMAIN }}/) available
[Frontend](https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }}/) available
Once merged, code will be promoted and handed off to following workflow run.
[Main Merge Workflow](https://github.com/${{ github.repository }}/actions/workflows/merge-main.yml)
Expand All @@ -41,14 +35,41 @@ jobs:
packages: write
strategy:
matrix:
package: [backend, database, frontend]
package: [consumer-go,consumer-rust,consumer-node, database, publisher-java-api,frontend-api, frontend-static,consumer-python]
include:
- package: backend
triggers: ('backend/')
- package: consumer-node
triggers: ('consumer-node/')
build_file: ./consumer-node/Dockerfile
build_context: ./consumer-node
- package: consumer-rust
triggers: ('consumer-rust/')
build_file: ./consumer-rust/Dockerfile
build_context: ./consumer-rust
- package: database
triggers: ('database/')
- package: frontend
triggers: ('frontend/')
build_file: ./database/Dockerfile
build_context: ./database
- package: consumer-go
triggers: ('consumer-go/')
build_file: ./consumer-go/Dockerfile
build_context: ./consumer-go
- package: publisher-java-api
triggers: ('publisher-java-api/')
build_file: ./publisher-java-api/Dockerfile
build_context: ./publisher-java-api
- package: frontend-api
triggers: ('frontend/api')
build_file: ./frontend/api/Dockerfile
build_context: ./frontend/api
- package: frontend-static
triggers: ('frontend/static')
build_file: ./frontend/static/Dockerfile
build_context: ./frontend/static
- package: consumer-python
triggers: ('consumer-python/')
build_file: ./consumer-python/Dockerfile
build_context: ./consumer-python

steps:
- uses: actions/checkout@v3
- uses: bcgov-nr/[email protected]
Expand All @@ -58,6 +79,8 @@ jobs:
tag_fallback: test
token: ${{ secrets.GITHUB_TOKEN }}
triggers: ${{ matrix.triggers }}
build_file: ${{ matrix.build_file }}
build_context: ${{ matrix.build_context }}

deploys:
name: Deploys
Expand All @@ -66,19 +89,39 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
name: [backend, database, init, frontend]
name: [consumer-go, consumer-node,consumer-rust, database, init, frontend-api,frontend-static,publisher-java-api,consumer-python]
include:
- name: backend
file: backend/openshift.deploy.yml
- name: consumer-go
file: consumer-go/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: consumer-rust
file: consumer-rust/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: publisher-java-api
file: publisher-java-api/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: consumer-node
file: consumer-node/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: database
file: database/openshift.deploy.yml
overwrite: false
- name: frontend
file: frontend/openshift.deploy.yml
- name: frontend-api
file: frontend/api/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: consumer-python
file: consumer-python/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: frontend-static
file: frontend/static/openshift.deploy.yml
overwrite: true
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=2
parameters: -p MIN_REPLICAS=1 -p MAX_REPLICAS=1
- name: init
file: common/openshift.init.yml
overwrite: false
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,6 @@ concurrency:
cancel-in-progress: true

jobs:
tests:
name: Unit Tests
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-22.04
strategy:
matrix:
dir: [backend, frontend]
include:
- dir: backend
sonar_projectKey: bcgov_nr-quickstart-typescript_backend
token: SONAR_TOKEN_BACKEND
- dir: frontend
sonar_projectKey: bcgov_nr-quickstart-typescript_frontend
token: SONAR_TOKEN_FRONTEND
steps:
- uses: bcgov-nr/[email protected]
with:
commands: |
npm ci
npm run test:cov
dir: ${{ matrix.dir }}
sonar_args: >
-Dsonar.exclusions=**/coverage/**,**/node_modules/**
-Dsonar.organization=bcgov-sonarcloud
-Dsonar.project.monorepo.enabled=true
-Dsonar.projectKey=${{ matrix.sonar_projectKey }}
sonar_project_token: ${{ secrets[matrix.token] }}

# https://github.com/marketplace/actions/aqua-security-trivy
trivy:
name: Trivy Security Scan
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ This product currently has no support and is experimental. That could change in

## Reporting a Vulnerability

Please report any issues or vulerabilities with an [issue](https://github.com/bcgov/nr-quickstart-typescript/issues).
Please report any issues or vulerabilities with an [issue](https://github.com/bcgov/nr-arch-choreography-saga/issues).
42 changes: 0 additions & 42 deletions backend/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions backend/nest-cli.json

This file was deleted.

Loading

0 comments on commit ecb966a

Please sign in to comment.