Skip to content

DH UI Frontend Healthchecks #12660

DH UI Frontend Healthchecks

DH UI Frontend Healthchecks #12660

# Copyright 2020 Energinet DataHub A/S
#
# Licensed under the Apache License, Version 2.0 (the "License2");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: DH UI Frontend Healthchecks
env:
# keep in sync with "engines.bun" and "volta.bun" in "package.json"
BUN_VERSION: 1.1.26
# See https://github.com/cypress-io/cypress/issues/25357
ELECTRON_EXTRA_LAUNCH_ARGS: --disable-gpu
on:
schedule:
- cron: 0 * * * *
jobs:
healthchecks:
name: Healthchecks
runs-on: ubuntu-latest
steps:
- name: Check out source code with current branch Git history
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bun setup
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ env.BUN_VERSION }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Run healthchecks
run: bun run nx run e2e-dh:e2e:health
- name: Upload artifact
if: failure()
uses: actions/upload-artifact@v4
with:
name: healthchecks
path: dist/cypress/apps/dh/e2e-dh/videos/b2c-healthchecks.cy.ts.mp4
#
# Send notification to teams channel if healthchecks failed
#
dispatch_failed:
needs: [healthchecks]
if: |
always() &&
contains(needs.*.result, 'failure')
uses: Energinet-DataHub/.github/.github/workflows/notify-team.yml@v14
with:
team_name: TeamFrontend
subject: DH UI Frontend Healthchecks - Failed
secrets: inherit