Skip to content

Commit

Permalink
Set PROJECT_PATH when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gregtyler committed Nov 4, 2024
1 parent 5cda630 commit c3cd52c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/_example_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ permissions:
repository-projects: none
statuses: none


jobs:
# generate a branch name
branch_name:
Expand Down Expand Up @@ -72,7 +71,6 @@ jobs:
branch_name: ${{ needs.branch_name.outputs.parsed }}
secrets: inherit


# Docker build, trivy scan, ECR push as a matrix
# The matrix loops over each app to build in a complicated
# structure
Expand Down Expand Up @@ -116,7 +114,7 @@ jobs:
with:
image-ref: ${{ env.local_docker_image }}
severity: "HIGH,CRITICAL"
format: 'sarif'
format: "sarif"
output: ${{ env.sarif_file }}
- name: Trivy scan upload to github
uses: github/codeql-action/upload-sarif@v2
Expand All @@ -126,6 +124,8 @@ jobs:
# for a lot of our services, there could be a test process here
- name: Run Tests
working-directory: ${{ matrix.data.docker_build_directory }}
env:
PROJECT_PATH: service-app
run: |
${{ matrix.data.test_command }}
######
Expand Down Expand Up @@ -180,9 +180,16 @@ jobs:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

end:
name: 'End of workflow'
runs-on: 'ubuntu-latest'
needs: [branch_name, workspace_name, semver_tag, build_scan_push, terraform_account_build]
name: "End of workflow"
runs-on: "ubuntu-latest"
needs:
[
branch_name,
workspace_name,
semver_tag,
build_scan_push,
terraform_account_build,
]
steps:
- name: "End"
run: |
Expand Down

0 comments on commit c3cd52c

Please sign in to comment.