Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Oct 24, 2023
1 parent 9a9e0f5 commit 232a622
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 42 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,32 +69,32 @@ jobs:
--health-retries 5
ports:
- 5432:5432
strategy:
matrix:
dir: [backend, frontend]
include:
- dir: backend
sonar_projectKey: quickstart-openshift_backend
token: SONAR_TOKEN_BACKEND
triggers: ('backend/')
- dir: frontend
sonar_projectKey: quickstart-openshift_frontend
token: SONAR_TOKEN_FRONTEND
triggers: ('frontend/')
steps:
- uses: bcgov-nr/[email protected]
with:
commands: |
npm ci
npm run test:cov
dir: ${{ matrix.dir }}
node_version: "20"
sonar_args: >
-Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts
-Dsonar.organization=bcgov-sonarcloud
-Dsonar.projectKey=${{ matrix.sonar_projectKey }}
-Dsonar.sources=src
-Dsonar.tests.inclusions=**/*spec.ts
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
sonar_token: ${{ secrets[matrix.token] }}
triggers: ${{ matrix.triggers }}
# strategy:
# matrix:
# dir: [backend, frontend]
# include:
# - dir: backend
# sonar_projectKey: nr-compliance-enforcement-cm_backend
# token: SONAR_TOKEN_BACKEND
# triggers: ('backend/')
# - dir: frontend
# sonar_projectKey: nr-compliance-enforcement-cm_frontend
# token: SONAR_TOKEN_FRONTEND
# triggers: ('frontend/')
# steps:
# - uses: bcgov-nr/[email protected]
# with:
# commands: |
# npm ci
# npm run test:cov
# dir: ${{ matrix.dir }}
# node_version: "20"
# sonar_args: >
# -Dsonar.exclusions=**/coverage/**,**/node_modules/**,**/*spec.ts
# -Dsonar.organization=bcgov-sonarcloud
# -Dsonar.projectKey=${{ matrix.sonar_projectKey }}
# -Dsonar.sources=src
# -Dsonar.tests.inclusions=**/*spec.ts
# -Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
# sonar_token: ${{ secrets[matrix.token] }}
# triggers: ${{ matrix.triggers }}
4 changes: 2 additions & 2 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Run integration tests
run: BASE_URL=https://quickstart-openshift-test-backend.apps.silver.devops.gov.bc.ca API_NAME=nest node src/main.js
run: BASE_URL=https://nr-compliance-enforcement-cm-test-backend.apps.silver.devops.gov.bc.ca API_NAME=nest node src/main.js

cypress-e2e:
name: Cypress end to end test
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- uses: cypress-io/github-action@v6
name: Cypress run
with:
config: pageLoadTimeout=10000,baseUrl=https://quickstart-openshift-test-frontend.apps.silver.devops.gov.bc.ca/
config: pageLoadTimeout=10000,baseUrl=https://nr-compliance-enforcement-cm-test-frontend.apps.silver.devops.gov.bc.ca/
working-directory: ./frontend
browser: ${{ matrix.browser }}
- uses: actions/upload-artifact@v3
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/quickstart-openshift/issues).
Please report any issues or vulerabilities with an [issue](https://github.com/bcgov/nr-compliance-enforcement-cm/issues).
6 changes: 3 additions & 3 deletions backend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Template
parameters:
- name: NAME
description: Module name
value: quickstart-openshift
value: nr-compliance-enforcement-cm
- name: COMPONENT
description: Component name
value: backend
Expand Down Expand Up @@ -45,10 +45,10 @@ parameters:
value: bcgov
- name: PROMOTE
description: Image (namespace/name:tag) to promote/import
value: bcgov/quickstart-openshift/backend:test
value: bcgov/nr-compliance-enforcement-cm/backend:test
- name: PROMOTE_MIGRATION
description: Image (namespace/name:tag) for migration to promote/import
value: bcgov/quickstart-openshift/migrations:test
value: bcgov/nr-compliance-enforcement-cm/migrations:test
- name: COMPONENT_DB_MIGRATION
description: Component name for database migrations
value: migrations
Expand Down
2 changes: 1 addition & 1 deletion database/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Template
parameters:
- name: NAME
description: Product name
value: quickstart-openshift
value: nr-compliance-enforcement-cm
- name: COMPONENT
description: Component name
value: database
Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { defineConfig } from "cypress";

export default defineConfig({
e2e: {
baseUrl: 'https://quickstart-openshift-test-frontend.apps.silver.devops.gov.bc.ca/',
baseUrl: 'https://nr-compliance-enforcement-cm-test-frontend.apps.silver.devops.gov.bc.ca/',
setupNodeEvents(on, config) {
// implement node event listeners here
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/openshift.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Template
parameters:
- name: NAME
description: Module name
value: quickstart-openshift
value: nr-compliance-enforcement-cm
- name: COMPONENT
description: Component name
value: frontend
Expand Down Expand Up @@ -34,7 +34,7 @@ parameters:
value: ghcr.io
- name: PROMOTE
description: Image (namespace/name:tag) to promote/import
value: bcgov/quickstart-openshift/frontend:prod
value: bcgov/nr-compliance-enforcement-cm/frontend:prod
- name: LOG_LEVEL
description: Caddy logging level DEBUG, INFO, WARN, ERROR, PANIC, and FATAL (https://github.com/caddyserver/caddy/blob/master/logging.go)
value: "info"
Expand Down
4 changes: 2 additions & 2 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "quickstart-openshift-react-frontend",
"name": "nr-compliance-enforcement-cm-react-frontend",
"private": true,
"version": "1.0.0",
"type": "module",
Expand Down

0 comments on commit 232a622

Please sign in to comment.