Skip to content

Commit

Permalink
(#60) Shared CI workflow for APIs.
Browse files Browse the repository at this point in the history
- Add shared commit lint check workflow.
- Add global.json to control SDK version.

Closes #60
  • Loading branch information
blairlearn committed Oct 30, 2024
1 parent d3e7878 commit 8c8982a
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 197 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Best Bets API CI workflow

on:
push:
branches:
- master
- develop
- 'hotfix/**'
- 'release/**'
- 'feature/**'
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
ci_remote:
uses: nciocpl/nci.ocpl.api.shared/.github/workflows/[email protected]
with:
api-project: src/NCI.OCPL.Api.BestBets/NCI.OCPL.Api.BestBets.csproj
artifact-name: bestbets
9 changes: 9 additions & 0 deletions .github/workflows/ocpl_cm_standards_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: OCPL Configuration Management Standards Check

on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]

jobs:
commitlint_remote:
uses: nciocpl/.github/.github/workflows/ocpl_cm_standards_check.yml@workflow/v2
197 changes: 0 additions & 197 deletions .github/workflows/workflow.yml

This file was deleted.

6 changes: 6 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"rollForward": "latestFeature",
"version": "6.0.0"
}
}
6 changes: 6 additions & 0 deletions integration-tests/bin/start-api.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

# Used in CI builds to abstract any API-specific start up steps.
export CGBestBetsIndex__PreviewAliasName=bestbets_v1
export CGBestBetsIndex__LiveAliasName=bestbets_v1
dotnet NCI.OCPL.Api.BestBets.dll

0 comments on commit 8c8982a

Please sign in to comment.