-
Notifications
You must be signed in to change notification settings - Fork 20
100 lines (88 loc) · 2.58 KB
/
build_test_release.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: build_test_release
on:
workflow_call:
inputs:
version_tag:
description: 'version tag to use'
required: false
default: "latest"
type: string
bump:
description: 'whether to bump the version number by a major minor patch amount or try gitlog'
required: false
default: "patch"
type: string
ref:
description: 'git reference to use with the checkout use default_branch to have that calculated'
required: false
default: "default"
type: string
workflow_dispatch:
inputs:
version_tag:
description: 'version tag to use'
required: false
default: "latest"
type: string
bump:
description: |
How to optionally bump the semver version ( Major.Minor.Patch ) : git log will be searched for
'#major #minor #patch' or feat/ or fix/ branch names to optionally override the bump. Set to none to keep a specific version
required: false
options:
- patch
- minor
- major
- none
type: choice
ref:
description: 'git reference to use with the checkout use default_branch to have that calculated'
required: false
default: "default_branch"
type: string
# cancel running job if another commit comes in
concurrency:
group: main-${{ github.ref }}-1
cancel-in-progress: true
jobs:
format_i18n:
uses: ./.github/workflows/format_i18n.yml
secrets: inherit # pass all secrets for pushing
format_prettier:
uses: ./.github/workflows/format_prettier.yml
secrets: inherit # pass all secrets for pushing
##############################################################################
lint:
uses: ./.github/workflows/lint.yml
needs:
- format_i18n
- format_prettier
unit_tests:
uses: ./.github/workflows/unit_tests.yml
needs:
- format_i18n
- format_prettier
# this is a test
bld_all_yarn:
uses: ./.github/workflows/bld_all_yarn.yml
needs:
- format_i18n
- format_prettier
##############################################################################
bld_all:
uses: ./.github/workflows/bld_all.yml
secrets: inherit # pass all secrets for uploading assets
needs:
- lint
- bld_all_yarn
- format_i18n
- format_prettier
permissions:
checks: write
contents: read
issues: read
pull-requests: write
with:
version_tag: ${{ inputs.version_tag }}
bump: ${{ inputs.bump }}
ref: ${{ inputs.ref }}