-
Notifications
You must be signed in to change notification settings - Fork 1
90 lines (81 loc) · 2.59 KB
/
brand-plugin-test.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
name: Build and Test Module Updates in Brand Plugins
on:
push:
branches:
- main
- master
- trunk
- develop
- release/*
- feature/*
- add/*
- update/*
- fix/*
- try/*
pull_request:
types: [ opened, reopened, ready_for_review ]
workflow_dispatch:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true
jobs:
setup:
name: Setup
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Get org secret for registry
shell: bash
run: echo "branch=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> $GITHUB_OUTPUT
id: access_token
bluehost:
name: Build and Test on Bluehost Plugin
needs: setup
uses: newfold-labs/action-module-plugin-test/.github/workflows/main.yml@main
with:
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'bluehost/bluehost-wordpress-plugin'
secrets: inherit
hostgator:
name: Build and Test on HostGator Plugin
needs: setup
uses: newfold-labs/action-module-plugin-test/.github/workflows/main.yml@main
with:
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'newfold-labs/wp-plugin-hostgator'
secrets: inherit
web:
name: Build and Test on Web.com Plugin
needs: setup
uses: newfold-labs/action-module-plugin-test/.github/workflows/main.yml@main
with:
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'newfold-labs/wp-plugin-web'
secrets: inherit
crazydomains:
name: Build and Test on Crazy Domains Plugin
needs: setup
uses: newfold-labs/action-module-plugin-test/.github/workflows/main.yml@main
with:
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'newfold-labs/wp-plugin-crazy-domains'
secrets: inherit
mojo:
name: Build and Test on Mojo Plugin
needs: setup
uses: newfold-labs/action-module-plugin-test/.github/workflows/main.yml@main
with:
module-repo: ${{ github.repository }}
module-branch: ${{ needs.setup.outputs.branch }}
plugin-repo: 'newfold-labs/wp-plugin-mojo'
secrets: inherit