-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.08 KB
/
ci.yml
File metadata and controls
41 lines (40 loc) · 1.08 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
name: Plugins
on:
workflow_call:
secrets:
token:
required: false
inputs:
craft_version:
default: "5"
type: string
php_version:
default: "8.4"
type: string
changelog_filename:
default: "CHANGELOG"
type: string
node_version:
default: "16"
type: string
jobs:
default: '["ecs"]'
type: string
concurrency:
group: ci-global-${{ github.ref }}
cancel-in-progress: true
jobs:
code-quality:
name: Code Quality
if: ${{ contains(fromJSON(inputs.jobs), 'ecs') || contains(fromJSON(inputs.jobs), 'phpstan')}}
uses: ./.github/workflows/code-quality.yml
with:
php_version: ${{ inputs.php_version || fromJSON('{"3":"7.2","4":"8.1","5":"8.4"}')[inputs.craft_version] }}
jobs: ${{ inputs.jobs }}
node_version: ${{ inputs.node_version }}
changelog-check:
name: Check changelog
if: ${{ contains(fromJSON(inputs.jobs), 'changelog') }}
uses: ./.github/workflows/changelog.yml
with:
changelog_filename: ${{ inputs.changelog_filename }}