Create a new performance test app in [main] #1
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: 'Create a new performance test app' | |
run-name: "Create a new performance test app in [${{ github.ref_name }}]" | |
on: | |
workflow_dispatch: | |
inputs: | |
project: | |
description: Project name if the repository is setup for multiple projects | |
required: false | |
default: '.' | |
name: | |
description: Name | |
required: true | |
default: '<YourAppName>.PerformanceTest' | |
publisher: | |
description: Publisher | |
required: true | |
idrange: | |
description: ID range | |
required: true | |
default: '50000..99999' | |
sampleCode: | |
description: Include Sample code (Y/N) | |
required: false | |
default: 'Y' | |
sampleSuite: | |
description: Include Sample BCPT Suite (Y/N) | |
required: false | |
default: 'Y' | |
directCommit: | |
description: Direct COMMIT (Y/N) | |
required: false | |
default: 'N' | |
useGhTokenWorkflow: | |
description: Use GhTokenWorkflow for Pull Request/COMMIT | |
type: boolean | |
permissions: | |
contents: write | |
pull-requests: write | |
defaults: | |
run: | |
shell: powershell | |
env: | |
ALGoOrgSettings: ${{ vars.ALGoOrgSettings }} | |
ALGoRepoSettings: ${{ vars.ALGoRepoSettings }} | |
jobs: | |
CreatePerformanceTestApp: | |
runs-on: [ windows-latest ] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Initialize the workflow | |
id: init | |
uses: microsoft/AL-Go-Actions/WorkflowInitialize@v4.0 | |
with: | |
shell: powershell | |
eventId: "DO0102" | |
- name: Read settings | |
uses: microsoft/AL-Go-Actions/ReadSettings@v4.0 | |
with: | |
shell: powershell | |
- name: Read secrets | |
id: ReadSecrets | |
uses: microsoft/AL-Go-Actions/ReadSecrets@v4.0 | |
with: | |
shell: powershell | |
gitHubSecrets: ${{ toJson(secrets) }} | |
getSecrets: 'TokenForPush' | |
useGhTokenWorkflowForPush: '${{ github.event.inputs.useGhTokenWorkflow }}' | |
- name: Creating a new test app | |
uses: microsoft/AL-Go-Actions/CreateApp@v4.0 | |
with: | |
shell: powershell | |
token: ${{ steps.ReadSecrets.outputs.TokenForPush }} | |
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} | |
project: ${{ github.event.inputs.project }} | |
type: 'Performance Test App' | |
name: ${{ github.event.inputs.name }} | |
publisher: ${{ github.event.inputs.publisher }} | |
idrange: ${{ github.event.inputs.idrange }} | |
sampleCode: ${{ github.event.inputs.sampleCode }} | |
sampleSuite: ${{ github.event.inputs.sampleSuite }} | |
directCommit: ${{ github.event.inputs.directCommit }} | |
- name: Finalize the workflow | |
if: always() | |
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@v4.0 | |
with: | |
shell: powershell | |
eventId: "DO0102" | |
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }} |