Skip to content

Commit

Permalink
Merge pull request #23 from pwei1018/20734-migrate-status-api
Browse files Browse the repository at this point in the history
Migrte status-api to gold cluster.
  • Loading branch information
pwei1018 authored Aug 2, 2024
2 parents a977cda + 5a964ba commit 837c8fb
Show file tree
Hide file tree
Showing 45 changed files with 2,944 additions and 354 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/status-api-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Status API CD OCP

on:
push:
branches:
- main
paths:
- "status-api/**"
workflow_dispatch:
inputs:
target:
description: "Deploy To"
required: true
type: choice
options:
- dev
- test
- prod

jobs:
status-api-cd:
uses: bcgov/bcregistry-sre/.github/workflows/backend-cd-ocp.yaml@main
with:
target: ${{ inputs.target }}
app_name: "status-api"
working_directory: "./status-api"
secrets:
OP_CONNECT_URL: ${{ secrets.OP_CONNECT_URL }}
OP_CONNECT_TOKEN: ${{ secrets.OP_CONNECT_TOKEN }}
OPENSHIFT_DOCKER_REGISTRY: ${{ secrets.OPENSHIFT_DOCKER_REGISTRY }}
OPENSHIFT_LOGIN_REGISTRY: ${{secrets.OPENSHIFT_LOGIN_REGISTRY}}
OPENSHIFT_SA_NAME: ${{ secrets.OPENSHIFT_SA_NAME }}
OPENSHIFT_SA_TOKEN: ${{ secrets.OPENSHIFT_SA_TOKEN }}
OPENSHIFT_REPOSITORY: ${{ secrets.OPENSHIFT_REPOSITORY }}
20 changes: 20 additions & 0 deletions .github/workflows/status-api-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Status API CI

on:
pull_request:
paths:
- "status-api/**"
workflow_dispatch:

defaults:
run:
shell: bash
working-directory: ./status-api

jobs:
status-api-ci:
uses: bcgov/bcregistry-sre/.github/workflows/backend-ci.yaml@main
with:
app_name: "status-api"
working_directory: "./status-api"
codecov_flag: "statusapi"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
.pyc

# C extensions
*.so
Expand Down
63 changes: 63 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
codecov:
require_ci_to_pass: true
branch: main
max_report_age: false

coverage:
precision: 2
round: down
range: "80...100"
status:
patch: false
project:
default: false
backend:
target: 80%
flags:
- notifyapi
- notifydelivery
- reportapi
- statusapi

ui:
target: 80%
flags:
- documentsui

ignore:
- "^/tests/**/*" # ignore test harness code

parsers:
gcov:
branch_detection:
conditional: true
loop: true
method: false
macro: false

comment:
layout: "diff,flags,tree"
behavior: default
require_changes: true

flags:
notifyapi:
paths:
- notify-api/src/notify_api
carryforward: true
notifydelivery:
paths:
- notify-delivery/src/notify_delivery
carryforward: true
reportapi:
paths:
- report-api/src/report_api
carryforward: true
statusapi:
paths:
- status-api/src/status_api
carryforward: true
documentsui:
paths:
- document-service/documents-ui/src
carryforward: true
Binary file removed notify-delivery/.coverage
Binary file not shown.
Loading

0 comments on commit 837c8fb

Please sign in to comment.