-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (63 loc) · 1.79 KB
/
frontend.yml
File metadata and controls
68 lines (63 loc) · 1.79 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Frontend CI
on:
workflow_call:
inputs:
base-tag:
required: true
type: string
image-name-prefix:
required: true
type: string
image-name-suffix:
required: true
type: string
node-version:
required: true
type: string
volto-version:
required: true
type: string
working-directory:
required: false
type: string
default: frontend
jobs:
code-analysis:
name: "Frontend: Codeanalysis"
uses: plone/meta/.github/workflows/frontend-code.yml@2.x
with:
node-version: ${{ inputs.node-version }}
working-directory: ${{ inputs.working-directory }}
i18n:
name: "Frontend: i18n"
uses: plone/meta/.github/workflows/frontend-i18n.yml@2.x
with:
node-version: ${{ inputs.node-version }}
working-directory: ${{ inputs.working-directory }}
unit:
name: "Frontend: Unit tests"
uses: plone/meta/.github/workflows/frontend-unit.yml@2.x
with:
node-version: ${{ inputs.node-version }}
working-directory: ${{ inputs.working-directory }}
release:
name: "Frontend: Build and publish container image"
uses: plone/meta/.github/workflows/container-image-build-push.yml@2.x
needs:
- code-analysis
- i18n
- unit
permissions:
contents: read
packages: write
with:
base-tag: ${{ inputs.base-tag }}
image-name-prefix: ${{ inputs.image-name-prefix }}
image-name-suffix: ${{ inputs.image-name-suffix }}
working-directory: ${{ inputs.working-directory }}
build-args: |
VOLTO_VERSION=${{ inputs.volto-version }}
push: ${{ github.event_name != 'pull_request' }}
secrets:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}