Skip to content

CB-5228 feat: fast frontend unit tests #9

CB-5228 feat: fast frontend unit tests

CB-5228 feat: fast frontend unit tests #9

Workflow file for this run

name: Common
on:
push:
branches:
- devel
pull_request:
branches:
- devel
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
skip_cache:
description: "Skip cache restoration"
required: false
default: "false"
jobs:
call-backend-build:
name: Build
uses: ./.github/workflows/backend-build.yml
call-frontend-build:
name: Build
uses: ./.github/workflows/frontend-build.yml
with:
skip_cache: ${{ github.event.inputs.skip_cache }}
call-frontend-tests:
name: Run Frontend Tests
needs: call-frontend-build
runs-on: ubuntu-latest
steps:
- name: Check if tests passed
if: ${{ needs.call-frontend-build.outputs.test-status != 'success' }}
run: |
echo "Tests failed"
exit 1
- name: Continue if tests passed
if: ${{ needs.call-frontend-build.outputs.test-status == 'success' }}
run: echo "Tests passed"
call-docker-build-and-push:
name: Run
needs: [call-backend-build, call-frontend-build]
uses: ./.github/workflows/docker-build-and-push.yml