generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into engagement/rest-documentation
- Loading branch information
Showing
81 changed files
with
2,316 additions
and
2,181 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
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,70 @@ | ||
# action.yml | ||
name: "Build Submissions" | ||
description: "Build submissions microservice" | ||
inputs: | ||
version: | ||
description: "Version tag" | ||
required: true | ||
upload-build: | ||
default: true | ||
run-integration-tests: | ||
default: false | ||
run-qc: | ||
default: false | ||
github-token: | ||
default: false | ||
sp-creds: | ||
description: "Azure Service Principal creds" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# These are for CI and not credentials of any system | ||
- name: Set Environment Variables | ||
working-directory: prime-router | ||
shell: bash | ||
run: | | ||
echo >> $GITHUB_ENV DB_USER='prime' | ||
echo >> $GITHUB_ENV DB_PASSWORD='changeIT!' | ||
- name: Remove unnecessary software | ||
shell: bash | ||
run: | | ||
sudo rm -rf /usr/local/lib/android | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 | ||
with: | ||
java-version: "17" | ||
distribution: "temurin" | ||
cache: "gradle" | ||
|
||
- uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 | ||
|
||
- name: Lint | ||
if: inputs.run-integration-tests == 'true' | ||
run: ./gradlew :submissions:ktlintCheck | ||
shell: bash | ||
|
||
- name: Spin up build containers | ||
working-directory: prime-router | ||
shell: bash | ||
run: docker compose -f docker-compose.postgres.yml up -d | ||
|
||
- name: Build Submissions Package | ||
uses: ./.github/actions/retry | ||
with: | ||
timeout_minutes: 10 | ||
max_attempts: 2 | ||
retry_wait_seconds: 30 | ||
command: | | ||
./gradlew :submissions:build -x test | ||
shell: bash | ||
|
||
- name: Cleanup Gradle Cache | ||
if: inputs.run-integration-tests == 'true' | ||
working-directory: prime-router | ||
run: | | ||
rm -f .gradle/caches/modules-2/modules-2.lock | ||
rm -f .gradle/caches/modules-2/gc.properties | ||
shell: bash |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,58 @@ | ||
import { Page } from "@playwright/test"; | ||
|
||
export const ELC = | ||
"https://www.cdc.gov/epidemiology-laboratory-capacity/php/about/"; | ||
export const ELC = "https://www.cdc.gov/epidemiology-laboratory-capacity/php/about/"; | ||
|
||
export async function clickOnInternalLink( | ||
locator: string, | ||
dataTestId: string, | ||
linkName: string, | ||
page: Page, | ||
) { | ||
await page | ||
.locator(locator) | ||
.getByTestId(dataTestId) | ||
.getByRole("link", { name: linkName }) | ||
.click(); | ||
export async function clickOnInternalLink(locator: string, dataTestId: string, linkName: string, page: Page) { | ||
await page.locator(locator).getByTestId(dataTestId).getByRole("link", { name: linkName }).click(); | ||
} | ||
|
||
export interface SideNavItem { | ||
name: string; | ||
path: string; | ||
} | ||
|
||
export const aboutSideNav = [ | ||
{ | ||
name: "About", | ||
path: "/about", | ||
}, | ||
{ | ||
name: "Our network", | ||
path: "/about/our-network", | ||
}, | ||
{ | ||
name: "Product roadmap", | ||
path: "/about/roadmap", | ||
}, | ||
{ | ||
name: "News", | ||
path: "/about/news", | ||
}, | ||
{ | ||
name: "Case studies", | ||
path: "/about/case-studies", | ||
}, | ||
{ | ||
name: "Security", | ||
path: "/about/security", | ||
}, | ||
{ | ||
name: "Release notes", | ||
path: "/about/release-notes", | ||
}, | ||
]; | ||
|
||
export const gettingStartedSideNav = [ | ||
{ | ||
name: "Getting started", | ||
path: "/getting-started", | ||
}, | ||
{ | ||
name: "Sending data", | ||
path: "/getting-started/sending-data", | ||
}, | ||
{ | ||
name: "Receiving data", | ||
path: "/getting-started/receiving-data", | ||
}, | ||
]; |
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
Oops, something went wrong.