-
Notifications
You must be signed in to change notification settings - Fork 396
52 lines (45 loc) · 1.25 KB
/
common.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Check
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-lint:
name: Lint
needs: call-frontend-build
uses: ./.github/workflows/frontend-lint.yml
call-frontend-tests:
name: Frontend Unit 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