Skip to content

Commit b5221ef

Browse files
authored
Merge pull request #3 from dotnetprog/feature/AddCodeCov
prepare pipeline for versionning and deployments
2 parents 13b21bc + 0f25b0c commit b5221ef

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci-validation.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,28 @@ permissions:
77
on:
88
pull_request:
99
branches: [ "main" ]
10+
push:
11+
branches:
12+
- main
1013
env:
1114
pcfWorkkingDirectory: 'src/broadcast-pcf/appmodulepicker'
1215
broadcastjsWorkingDirectory: 'src/broadcast-typescript'
16+
solutionDirectory: 'src/broadcast-solution'
1317
artifactlocation: '${{ github.workspace }}/dist'
1418
jobs:
19+
ValidationSolutionPack:
20+
if: ${{ github.event_name == 'pull_request' }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Install Power Platform Tools
25+
uses: microsoft/powerplatform-actions/actions-install@v1
26+
- name: Pack solution
27+
uses: microsoft/powerplatform-actions/pack-solution@v1
28+
with:
29+
solution-folder: ${{ env.solutionDirectory}}
30+
solution-file: artifactlocation/broadcast_solution.zip
31+
solution-type: Unmanaged
1532
buildBroadCastJs:
1633
runs-on: ubuntu-latest
1734
steps:
@@ -58,6 +75,7 @@ jobs:
5875
- name: Copy file outputjs into staging directory
5976
run: cp ${{ env.broadcastjsWorkingDirectory }}/dist/broadcast.js ${{env.artifactlocation}}
6077
- name: Upload broadcastjs artifact
78+
if: ${{ success() && (github.event_name == 'push') }}
6179
uses: actions/upload-artifact@v4
6280
with:
6381
name: broadcastjs
@@ -77,6 +95,7 @@ jobs:
7795
- name: Copy file output pcf bundle into staging directory
7896
run: cp ${{ env.pcfWorkkingDirectory }}/out/controls/AppModulePicker/* ${{env.artifactlocation}}
7997
- name: Upload AppModulePicker artifact
98+
if: ${{ success() && (github.event_name == 'push') }}
8099
uses: actions/upload-artifact@v4
81100
with:
82101
name: AppModulePicker

0 commit comments

Comments
 (0)