Enterprise Templates Artefacts (Checklist, Training & Registration, Visitor Registration Goal Tracking) #113
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Check | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build-and-check: | |
runs-on: windows-latest | |
steps: | |
- name: Enable long paths support | |
run: git config --system core.longpaths true | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup .NET Core environment | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0' | |
- name: Set up MSBuild | |
uses: microsoft/[email protected] | |
- name: Install PAC CLI | |
run: | | |
dotnet tool install --global Microsoft.PowerApps.CLI.Tool | |
# - name: Auth | |
# run: | | |
# pac auth create --kind CDS --url ${{ secrets.POWERPLATFORM_URL }} --username ${{ secrets.POWERPLATFORM_USERNAME }} --password ${{ secrets.POWERPLATFORM_PASSWORD }} | |
# env: | |
# POWERPLATFORM_URL: ${{ secrets.POWERPLATFORM_URL }} | |
# POWERPLATFORM_USERNAME: ${{ secrets.POWERPLATFORM_USERNAME }} | |
# POWERPLATFORM_PASSWORD: ${{ secrets.POWERPLATFORM_PASSWORD }} | |
- name: Build Solutions | |
run: | | |
Get-ChildItem -Recurse -Filter "*.cdsproj" | | |
ForEach-Object { | |
msbuild /t:restore $_.FullName | |
msbuild /p:configuration=Release $_.FullName | |
} | |
# - name: Publish artifacts | |
# uses: actions/upload-artifact@v2 | |
# with: | |
# name: release-artifacts | |
# path: '**/bin/Release/*.zip' | |
# - name: Check Solutions | |
# run: | | |
# Get-ChildItem -Path '.' -Directory -Recurse | | |
# Where-Object { $_.FullName.EndsWith('bin\Release') } | | |
# ForEach-Object { Get-ChildItem -Path (Join-Path $_.FullName '*.zip') | | |
# ForEach-Object { pac solution check --path $_.FullName } } |