-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
291db79
commit e034324
Showing
50 changed files
with
606 additions
and
434 deletions.
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 |
---|---|---|
@@ -1 +1 @@ | ||
1.1.40 | ||
1.1.20 |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
name: Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- "*" | ||
- "!skipci*" | ||
|
||
concurrency: | ||
group: ${{ startsWith(github.ref_name, 'snyk-') && 'snyk' || github.ref_name }}-group | ||
|
||
|
@@ -77,7 +79,6 @@ jobs: | |
environment: | ||
name: ${{ startsWith(github.ref_name, 'snyk-') && 'snyk' || github.ref_name }}-app | ||
url: ${{ needs.deploy.outputs.app-url }} | ||
|
||
steps: | ||
- name: Display App URL | ||
run: | | ||
|
@@ -94,6 +95,7 @@ jobs: | |
- name: Display Kibana URL | ||
run: | | ||
echo "Kibana URL: ${{ needs.deploy.outputs.kibana-url }}" | ||
test: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
|
@@ -113,10 +115,6 @@ jobs: | |
aws-region: us-east-1 | ||
role-duration-seconds: 10800 | ||
|
||
- name: Install dependencies | ||
run: bun install | ||
- name: Add Node.js bin to PATH | ||
run: echo "PATH=$(pwd)/node_modules/.bin:\$PATH" >> $GITHUB_ENV | ||
- name: Test | ||
run: run test --coverage | ||
- name: Upload Coverage | ||
|
@@ -129,48 +127,35 @@ jobs: | |
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: "coverage/lcov.info:lcov" | ||
coverageLocations: coverage/lcov.info:lcov | ||
|
||
e2e: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
- deploy | ||
- application-url | ||
- kibana-url | ||
environment: | ||
name: ${{ startsWith(github.ref_name, 'snyk-') && 'snyk' || github.ref_name }} | ||
if: ${{ github.ref != 'refs/heads/production' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/setup | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }} | ||
aws-region: us-east-1 | ||
role-duration-seconds: 10800 | ||
- name: Install dependencies | ||
run: bun install | ||
- name: Run e2e test | ||
working-directory: test | ||
run: | | ||
bun install | ||
bun e2e | ||
env: | ||
VITE_BASE_URL: ${{ needs.deploy.outputs.app-url }} | ||
VITE_E2E_PASSWORD: ${{ secrets.VITE_E2E_PASSWORD }} | ||
- name: Upload Playwright Report | ||
uses: actions/upload-artifact@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run e2e tests | ||
run: run e2e | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report | ||
path: test/e2e/playwright-report/index.html | ||
retention-days: 30 | ||
|
||
cfn-nag: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
|
@@ -203,6 +188,42 @@ jobs: | |
uses: stelligent/[email protected] | ||
with: | ||
input_path: cftemplates | ||
resources: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
- deploy | ||
environment: | ||
name: ${{ startsWith(github.ref_name, 'snyk-') && 'snyk' || github.ref_name }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/setup | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_OIDC_ROLE_TO_ASSUME }} | ||
aws-region: us-east-1 | ||
role-duration-seconds: 10800 | ||
|
||
- name: Get AWS Stage Resources | ||
id: stage-resources | ||
run: | | ||
mkdir -p resources | ||
resourceData=() | ||
stackList=(`aws cloudformation describe-stacks --query "Stacks[?Tags[?Key=='STAGE' && Value=='$STAGE_NAME'] && Tags[?Key=='PROJECT' && Value=='$PROJECT']].StackName" --output text`) | ||
for stack in "${stackList[@]}"; do | ||
resources=$(aws cloudformation list-stack-resources --stack-name "$stack" --query "StackResourceSummaries[].{PhysicalResourceId:PhysicalResourceId, ResourceType:ResourceType, ResourceStatus:ResourceStatus, LogicalResourceId:LogicalResourceId, LastUpdatedTimestamp:LastUpdatedTimestamp}" --output json) | ||
resourceData+=( $(echo "$resources" | jq -c --arg stack_name "$stack" '.[] + { StackName: $stack_name }') ) | ||
done | ||
join_by() { local IFS="$1"; shift; echo "$*"; } | ||
echo "["$(join_by "," "${resourceData[@]}")"]" > "resources/aws-resources.json" | ||
- name: Archive stage resources | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: aws-resources-${{ startsWith(github.ref_name, 'snyk-') && 'snyk' || github.ref_name }} | ||
path: resources/aws-resources.json | ||
|
||
release: | ||
runs-on: ubuntu-20.04 | ||
|
@@ -218,6 +239,7 @@ jobs: | |
|
||
- name: Install | ||
run: bun install | ||
|
||
- name: Release | ||
run: bun semantic-release | ||
env: | ||
|
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 |
---|---|---|
@@ -1,26 +1,21 @@ | ||
name: PR - coverage annotation | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
coverage-report: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup | ||
- name: Test | ||
run: run test --coverage | ||
- name: Report Coverage | ||
if: always() | ||
uses: davelosert/vitest-coverage-report-action@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
coverage-file: coverage/coverage-final.json | ||
coverage-threshold: 80 | ||
coverage-threshold-type: lines | ||
coverage-threshold-color: green |
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
Binary file not shown.
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
34 changes: 34 additions & 0 deletions
34
lib/libs/email/__tests__/__snapshots__/InitialSubmissionCMS.test.tsx.snap
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,34 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Initial Submission CMS Email Snapshot Test > renders a AppkCMSEmail Preview Template 1`] = ` | ||
<AppKCMSEmail | ||
variables={ | ||
{ | ||
"actionType": "Amend", | ||
"additionalInformation": "This submission includes necessary documentation for requested updates to the state’s Medicaid plan, in alignment with CMS requirements.", | ||
"appkParentId": null, | ||
"applicationEndpointUrl": "https://mako-dev.cms.gov/", | ||
"attachments": { | ||
"appk": { | ||
"files": [], | ||
"label": "AppK", | ||
}, | ||
"other": { | ||
"files": [], | ||
"label": "Other", | ||
}, | ||
}, | ||
"authority": "1915(c)", | ||
"event": "app-k", | ||
"id": "CO-1234.R21.00", | ||
"origin": "mako", | ||
"proposedEffectiveDate": 1728495789885, | ||
"submitterEmail": "[email protected]", | ||
"submitterName": "George Harrison", | ||
"territory": "CO", | ||
"timestamp": 1728495786285, | ||
"title": "A Perfect Appendix K Amendment Title", | ||
} | ||
} | ||
/> | ||
`; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.