-
Notifications
You must be signed in to change notification settings - Fork 361
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
Showing
1,752 changed files
with
58,608 additions
and
42,006 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 |
---|---|---|
@@ -0,0 +1,117 @@ | ||
name: 'Azure e2e - Run Workflow' | ||
on: | ||
schedule: | ||
- cron: '0 16 * * *' # UTC 4pm, EST 11am, EDT 12pm | ||
workflow_dispatch: | ||
|
||
env: | ||
BROADBOT_TOKEN: '${{ secrets.BROADBOT_GITHUB_TOKEN }}' # github token for access to kick off a job in the private repo | ||
RUN_NAME_SUFFIX: '${{ github.event.repository.name }}-${{ github.run_id }}-${{ github.run_attempt }}' | ||
|
||
jobs: | ||
|
||
# This job provisions useful parameters for e2e tests | ||
params-gen: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
outputs: | ||
project-name: ${{ steps.gen.outputs.project_name }} | ||
bee-name: '${{ github.event.repository.name }}-${{ github.run_id }}-${{ github.run_attempt}}-dev' | ||
steps: | ||
- name: Generate a random billing project name | ||
id: 'gen' | ||
run: | | ||
project_name=$(echo "tmp-billing-project-$(uuidgen)" | cut -c -30) | ||
echo "project_name=${project_name}" >> $GITHUB_OUTPUT | ||
create-bee-workflow: | ||
runs-on: ubuntu-latest | ||
needs: [params-gen] | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
steps: | ||
- name: Dispatch to terra-github-workflows | ||
uses: broadinstitute/workflow-dispatch@v3 | ||
with: | ||
workflow: bee-create | ||
repo: broadinstitute/terra-github-workflows | ||
ref: refs/heads/main | ||
token: ${{ env.BROADBOT_TOKEN }} | ||
# NOTE: Opting to use "prod" instead of custom tag since I specifically want to test against the current prod state | ||
# NOTE: For testing/development purposes I'm using dev | ||
inputs: '{ "bee-name": "${{ needs.params-gen.outputs.bee-name }}", "version-template": "dev", "bee-template-name": "rawls-e2e-azure-tests"}' | ||
|
||
create-and-attach-billing-project-to-landing-zone-workflow: | ||
runs-on: ubuntu-latest | ||
needs: [create-bee-workflow, params-gen] | ||
steps: | ||
- name: dispatch to terra-github-workflows | ||
uses: broadinstitute/workflow-dispatch@v3 | ||
with: | ||
workflow: attach-billing-project-to-landing-zone.yaml | ||
repo: broadinstitute/terra-github-workflows | ||
ref: refs/heads/main | ||
token: ${{ env.BROADBOT_TOKEN }} | ||
inputs: '{ | ||
"run-name": "attach-billing-project-to-landing-zone-${{ env.RUN_NAME_SUFFIX }}", | ||
"bee-name": "${{ needs.params-gen.outputs.bee-name }}", | ||
"billing-project": "${{ needs.params-gen.outputs.project-name }}", | ||
"service-account": "firecloud-qa@broad-dsde-qa.iam.gserviceaccount.com" }' | ||
|
||
run-cromwell-az-e2e: | ||
needs: [params-gen, create-and-attach-billing-project-to-landing-zone-workflow] | ||
permissions: | ||
contents: read | ||
id-token: write | ||
uses: "broadinstitute/dsp-reusable-workflows/.github/workflows/cromwell-az-e2e-test.yaml@main" | ||
with: | ||
bee-name: "${{ needs.params-gen.outputs.bee-name }}" | ||
billing-project-name: "${{ needs.params-gen.outputs.project-name }}" | ||
|
||
delete-billing-project-v2-from-bee-workflow: | ||
continue-on-error: true | ||
runs-on: ubuntu-latest | ||
needs: [run-cromwell-az-e2e, create-and-attach-billing-project-to-landing-zone-workflow, params-gen] | ||
if: always() | ||
steps: | ||
- name: dispatch to terra-github-workflows | ||
uses: broadinstitute/workflow-dispatch@v3 | ||
with: | ||
workflow: .github/workflows/delete-billing-project-v2-from-bee.yaml | ||
repo: broadinstitute/terra-github-workflows | ||
ref: refs/heads/main | ||
token: ${{ env.BROADBOT_TOKEN }} | ||
inputs: '{ | ||
"run-name": "delete-billing-project-v2-from-bee-${{ env.RUN_NAME_SUFFIX }}", | ||
"bee-name": "${{ needs.params-gen.outputs.bee-name }}", | ||
"billing-project": "${{ needs.params-gen.outputs.project-name }}", | ||
"service-account": "firecloud-qa@broad-dsde-qa.iam.gserviceaccount.com", | ||
"silent-on-failure": "false" }' | ||
|
||
destroy-bee-workflow: | ||
runs-on: ubuntu-latest | ||
needs: [params-gen, create-bee-workflow, delete-billing-project-v2-from-bee-workflow] | ||
if: always() | ||
permissions: | ||
contents: 'read' | ||
id-token: 'write' | ||
steps: | ||
- name: dispatch to terra-github-workflows | ||
uses: broadinstitute/workflow-dispatch@v3 | ||
with: | ||
workflow: bee-destroy.yaml | ||
repo: broadinstitute/terra-github-workflows | ||
ref: refs/heads/main | ||
token: ${{ env.BROADBOT_TOKEN }} | ||
inputs: '{ "bee-name": "${{ needs.params-gen.outputs.bee-name }}" }' | ||
wait-for-completion: true | ||
|
||
report-workflow: | ||
uses: broadinstitute/sherlock/.github/workflows/client-report-workflow.yaml@main | ||
with: | ||
notify-slack-channels-upon-workflow-failure: "#cromwell_jenkins_ci_errors" | ||
permissions: | ||
id-token: write |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'ScalaFmt Check' | ||
|
||
# This GitHub Action runs the ScalaFmt linting tool on the entire codebase. | ||
# It fails if any files are not formatted properly. | ||
# If it is triggered by someone commenting 'scalafmt' on a PR, it will first format, commit, and push formatted code | ||
# to the branch. | ||
|
||
run-name: ${{ format('ScalaFmt Check on {0}', github.ref_name) }} | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
run-scalafmt-check: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.target-branch }} | ||
- uses: ./.github/set_up_cromwell_action | ||
with: | ||
cromwell_repo_token: ${{ secrets.BROADBOT_GITHUB_TOKEN }} | ||
- name: Run ScalaFmt | ||
run: | | ||
sbt scalafmtCheckAll | ||
working-directory: ${{ github.workspace }} |
Oops, something went wrong.