Skip to content

Commit e8dbc7a

Browse files
authored
Merge pull request #66 from newfold-labs/add/test-workflow
add test workflow
2 parents 58c1a2a + 713231e commit e8dbc7a

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build and Test Module Updates in Brand Plugins
2+
on:
3+
pull_request:
4+
types: [ opened, reopened, ready_for_review, synchronize ]
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
setup:
15+
name: Setup
16+
runs-on: ubuntu-latest
17+
outputs:
18+
branch: ${{ steps.extract_branch.outputs.branch }}
19+
steps:
20+
21+
- name: Extract branch name
22+
shell: bash
23+
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
24+
id: extract_branch
25+
26+
bluehost:
27+
name: Bluehost Build and Test
28+
needs: setup
29+
uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main
30+
with:
31+
module-repo: ${{ github.repository }}
32+
module-branch: ${{ needs.setup.outputs.branch }}
33+
plugin-repo: 'bluehost/bluehost-wordpress-plugin'
34+
secrets: inherit

0 commit comments

Comments
 (0)