chore(deps): update dependency jsdom to v23 #3638
Workflow file for this run
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
name: PR | |
on: | |
pull_request: | |
merge_group: | |
concurrency: | |
# PR open and close use the same group, allowing only one at a time | |
group: ${{ github.workflow }}-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
# Enforce conventional commits in PR titles | |
conventional-commits: | |
if: github.event_name == 'pull_request' | |
name: Conventional Commits | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: amannn/action-semantic-pull-request@v5.4.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
pr-description-add: | |
name: PR Description Add | |
if: github.event_name == 'pull_request' | |
env: | |
DOMAIN: apps.silver.devops.gov.bc.ca | |
PREFIX: ${{ github.event.repository.name }} | |
runs-on: ubuntu-22.04 | |
permissions: | |
pull-requests: write | |
timeout-minutes: 1 | |
steps: | |
- uses: bcgov-nr/action-pr-description-add@v1.1.0 | |
with: | |
add_markdown: | | |
--- | |
Thanks for the PR! | |
Deployments, as required, will be available below: | |
- [Frontend](https://${{ env.PREFIX }}-${{ github.event.number }}-frontend.${{ env.DOMAIN }}) | |
- [Backend](https://${{ env.PREFIX }}-${{ github.event.number }}-frontend.${{ env.DOMAIN }}/api) | |
Please create PRs in draft mode. Mark as ready to enable: | |
- [Analysis Workflow](https://github.com/${{ github.repository }}/actions/workflows/analysis.yml) | |
After merge, new images are deployed in: | |
- [Merge Workflow](https://github.com/${{ github.repository }}/actions/workflows/merge.yml) | |
# Find initial PR number (for merge queues) | |
vars: | |
name: Build and Deploy Vars | |
outputs: | |
asg: ${{ steps.deploys.outputs.asg }} | |
env: ${{ steps.deploys.outputs.env }} | |
tag: ${{ steps.deploys.outputs.tag }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Set Variables | |
id: deploys | |
run: | | |
if [ ${{ github.event_name }} == 'pull_request' ] | |
then | |
# Pull request event | |
asg=false | |
env="" | |
tag=${{ github.event.number }} | |
else | |
# Merge group event | |
asg=true | |
env=test | |
tag=$(echo ${{ github.event.merge_group.head_ref }} | grep -Eo "queue/main/pr-[0-9]+" | cut -d '-' -f2) | |
fi | |
echo "Summary ---" | |
echo -e "\tAutoscaling: ${asg}" | |
echo -e "\tEnvironment: ${env}" | |
echo -e "\tTag (PR no): ${tag}" | |
echo "asg=${asg}" >> $GITHUB_OUTPUT | |
echo "env=${env}" >> $GITHUB_OUTPUT | |
echo "tag=${tag}" >> $GITHUB_OUTPUT | |
# https://github.com/bcgov-nr/action-builder-ghcr | |
builds: | |
name: Builds | |
needs: [vars] | |
runs-on: ubuntu-22.04 | |
permissions: | |
packages: write | |
strategy: | |
matrix: | |
package: [migrations, backend, frontend] | |
timeout-minutes: 10 | |
steps: | |
- uses: bcgov-nr/action-builder-ghcr@v2.0.0 | |
with: | |
keep_versions: 50 | |
package: ${{ matrix.package }} | |
tag: ${{ needs.vars.outputs.tag }} | |
tag_fallback: latest | |
triggers: ('${{ matrix.package }}/') | |
# https://github.com/bcgov-nr/action-deployer-openshift | |
deploys: | |
name: Deploys | |
needs: [builds, vars] | |
uses: ./.github/workflows/.deploy.yml | |
secrets: inherit | |
with: | |
autoscaling: ${{ needs.vars.outputs.asg }} | |
directory: charts/quickstart-openshift | |
environment: ${{ needs.vars.outputs.env }} | |
tag: ${{ needs.vars.outputs.tag }} | |
release: ${{ needs.vars.outputs.tag }} | |
# triggers: ('backend/' 'frontend/' 'migrations/' 'charts/') | |
integration-e2e: | |
name: Integration and E2E Tests | |
needs: [deploys, vars] | |
uses: ./.github/workflows/.tests.yml | |
with: | |
target: ${{ needs.vars.outputs.tag }} |