Skip to content

Commit

Permalink
Move load tests to merge workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Feb 7, 2024
1 parent c281398 commit be4d453
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ jobs:
with:
target: test

load-test:
name: Load Test
needs: [deploys]
uses: ./.github/workflows/.load-test.yml
secrets: inherit
with:
target: test

deploy-prod:
name: Deploy (prod)
needs: [integration-e2e, vars]
Expand Down
49 changes: 20 additions & 29 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,33 @@ concurrency:
cancel-in-progress: true

jobs:
# # https://github.com/bcgov-nr/action-builder-ghcr
# builds:
# name: Builds
# runs-on: ubuntu-22.04
# permissions:
# packages: write
# strategy:
# matrix:
# package: [migrations, backend, frontend]
# timeout-minutes: 10
# steps:
# - uses: bcgov-nr/[email protected]
# with:
# keep_versions: 50
# package: ${{ matrix.package }}
# tag: ${{ github.event.number }}
# tag_fallback: latest
# triggers: ('${{ matrix.package }}/')
# https://github.com/bcgov-nr/action-builder-ghcr
builds:
name: Builds
runs-on: ubuntu-22.04
permissions:
packages: write
strategy:
matrix:
package: [migrations, backend, frontend]
timeout-minutes: 10
steps:
- uses: bcgov-nr/[email protected]
with:
keep_versions: 50
package: ${{ matrix.package }}
tag: ${{ github.event.number }}
tag_fallback: latest
triggers: ('${{ matrix.package }}/')

# https://github.com/bcgov-nr/action-deployer-openshift
deploys:
name: Deploys
# needs: [builds]
needs: [builds]
uses: ./.github/workflows/.deploy.yml
secrets: inherit
with:
autoscaling: false
tag: ${{ github.event.number }}
release: ${{ github.event.number }}
# triggers: ('backend/' 'frontend/' 'migrations/' 'charts/')

# https://github.com/bcgov-nr/action-deployer-openshift
load-test:
name: Load Test
needs: [deploys]
uses: ./.github/workflows/.load-test.yml
secrets: inherit
with:
target: ${{ github.event.number }}
triggers: ('backend/' 'frontend/' 'migrations/' 'charts/')

0 comments on commit be4d453

Please sign in to comment.