-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SSCSCI-1046: Add case list filter options for IBA users * SSCSCI-1046: Update auth case state tab * SSCSCI-1046: Add role to access profile mapping * Add CCD Diff * Add CCD Diff --------- Co-authored-by: Tom Elliott <tomelliott@Toms-MacBook-Pro.local> Co-authored-by: Nitin Prabhu <142304341+nitinprabhuhmcts@users.noreply.github.com> Co-authored-by: pats-john <13101669+pats-john@users.noreply.github.com> Co-authored-by: Linus Norton <linusnorton@gmail.com>
- Loading branch information
1 parent
fa989a7
commit 0637690
Showing
5 changed files
with
106 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Diff CCD definition | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
|
||
buildBranch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: build/branch | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: branch | ||
path: build/branch/definitions/benefit/sheets/* | ||
|
||
buildMaster: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
path: build/master | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: master | ||
path: build/master/definitions/benefit/sheets/* | ||
|
||
report: | ||
runs-on: ubuntu-latest | ||
needs: [buildBranch, buildMaster] | ||
steps: | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: branch | ||
path: build/branch | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: master | ||
path: build/master | ||
- name: Generate report | ||
id: ccd-diff | ||
run: | | ||
REPORT="$(npx -q @hmcts/ccd-diff build/master build/branch)" | ||
REPORT="${REPORT//'%'/'%25'}" | ||
REPORT="${REPORT//$'\n'/'%0A'}" | ||
REPORT="${REPORT//$'\r'/'%0D'}" | ||
echo $REPORT | ||
echo "::set-output name=content::$REPORT" | ||
- name: Display | ||
run: | | ||
echo "${{ steps.ccd-diff.outputs.content }}" | ||
- name: Add report | ||
uses: thollander/actions-comment-pull-request@v1 | ||
with: | ||
message: | | ||
# CCD diff report | ||
${{ steps.ccd-diff.outputs.content }} | ||
comment_includes: CCD diff report | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters