Граф коммитов

48 Коммитов

Автор SHA1 Сообщение Дата
Alexander Holstrup 6f8c7f379a
Fix all issues found by pre-commit and add a pre-commit check to PRs (#1112)
This PR should go in after https://github.com/microsoft/AL-Go/pull/955

This PR:
* Fixes all the issues found by the pre-commit hooks (by running
`pre-commit run --all-files`)
* Adds a check on future AL-Go PRs to ensure the pre-commit hooks have
been run.

---------

Co-authored-by: Freddy Kristiansen <freddy.kristiansen@microsoft.com>
2024-06-24 11:33:51 +02:00
Freddy Kristiansen 7a8c4a7d8e
PowerPlatform integration (#927)
Fixes #361

New Settings:
- PowerPlatformSolutionFolder - containing the name of the folder
containing a PowerPlatform Solution (only one)
- companyId and ppEnvironmentUrl added to deploymentSettings for
environments.

New Actions:
- BuildPowerPlatform - to build a PowerPlatform Solution
- DeployPowerPlatform - to deploy a PowerPlatform Solution
- PullPowerPlatformChanges - to pull changes made in PowerPlatform
studio into the repository
- ReadPowerPlatformSettings - to read settings and secrets for
PowerPlatform deployment
- GetArtifactsForDeployment - originally code from deploy.ps1 to
retrieve artifacts for releases or builds - now as an action to read
apps into a folder.

New Workflows:
- Pull PowerPlatform Changes
- Push PowerPlatform Changes

Other changes
- Getting artifacts for deployment moved from deploy.ps1 to a seperate
action
- Test for specific version of containerhelper moved to avoid many
warnings
- Add scenarios for PowerPlatform
- Add PowerPlatformSolution artifact to builds
- Add unpack parameter to DownloadArtifact to unpack after download.

TO:DO
- [x] Fix failing CI tests
- [x] Ensure End 2 End test are passing
- [x] Increment version number in PowerPlatform project (awaits
Increment Version Number PR from @mazhelez)
- [x] Unit Tests
- [x] End 2 End test
- [x] Remove PREVIEW prefix from various docs
- [x] Remove usage of private version of BcContainerHelper
- [x] Release notes
- [x] Document new settings

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
Co-authored-by: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com>
Co-authored-by: Alexander Holstrup <117829001+aholstrup1@users.noreply.github.com>
Co-authored-by: andersgMSFT <90765077+andersgMSFT@users.noreply.github.com>
2024-05-14 09:27:47 +02:00
Freddy Kristiansen 3275712f68
AppSource: Bug fixes, Publish dependencies and Documentation (#1027)
### Issues
- ContainerName used during build was invalid if project names contained
special characters
- Issue 1009 by adding a includeDependencies property in
DeliverToAppSource
- Issue 997 'Deliver to AppSource' action fails for projects containing
a space (or any special character)
- Issue 987 Resource not accessible by integration when creating release
from specific version
- Issue 979 Publish to AppSource Documentation

### New Settings
- `deliverToAppSource`: a JSON object containing the following
properties
  - **productId** must be the product Id from partner Center.
- **mainAppFolder** specifies the appFolder of the main app if you have
multiple apps in the same project.
- **continuousDelivery** can be set to true to enable continuous
delivery of every successful build to AppSource Validation. Note that
the app will only be in preview in AppSource and you will need to
manually press GO LIVE in order for the app to be promoted to
production.
- **includeDependencies** can be set to an array of file names (incl.
wildcards) which are the names of the dependencies to include in the
AppSource submission. Note that you need to set
`generateDependencyArtifact` in the project settings file to true in
order to include dependencies.

### Deprecated Settings
- `appSourceContinuousDelivery` is moved to the `deliverToAppSource`
structure
- `appSourceMainAppFolder` is moved to the `deliverToAppSource`
structure
- `appSourceProductId` is moved to the `deliverToAppSource` structure

Fixes #1009
Fixes #997
Fixes #987
Fixes #979

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
2024-04-13 12:13:16 +02:00
Freddy Kristiansen 75523758e1
Update README.md (#779) 2023-10-17 13:06:25 +02:00
Abinash Phuel 61f0cb6f19
Fixed typo (#690) 2023-09-06 08:49:23 +02:00
Freddy Kristiansen 3c466ebe8b
Removal of 450 Script Analyzer problems (#686)
### The only real code change is in ReadSecrets
- If you precede a secret name with an asterisk in ReadSecrets/get, it
will be encrypted (as well as base64 encoded)
- Secrets used as SecureString in code will be requested as encrypted
(codeSignCertificatePassword and KeyVaultCertificatePassword) - allows
us to use ConvertTo-SecureString (without the -plaintext clause)
- Refactor connection to Azure KeyVault to only get credentials once and
keep clientSecret as secureString

This part also contains a bug fix that was introduced in
GetKeyVaultSecret during secrets refactoring (identified by secretName
parameter was never used)

### Whitespace only changes:
- Missing BOM on .ps1 files (all now have BOM - half didn't)
- Whitespace trailing lines (fixed everywhere)

### Suppressions:
- Suppress Analyzer on parameter blocks on test runners
- Suppress ConvertTo-SecureString (with plain text) in ReadSecretsHelper
- since we get GitHub secrets in clear text in code.
- Variables initialized in BeforeAll in tests
- Assigning isWindows, isMacOS and isLinux when running PS5

### Renaming functions to not use dash in names (must then follow
cmdlets)

### Removing actor+token from ReadSettings action as this is no longer
needed
- Functionality needing these have been moved to seperate actions

---------

Co-authored-by: freddydk <freddydk@users.noreply.github.com>
Co-authored-by: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com>
2023-09-05 10:40:42 +02:00
Freddy Kristiansen 42947b9d52
Update README.md 2023-01-19 22:12:12 +01:00
Freddy Kristiansen cfa2914f91
Merge pull request #365 from freddydk/migrationDocs
Migration docs
2023-01-19 15:54:37 +01:00
freddydk a88c78cd1f update 2023-01-19 14:44:25 +01:00
freddydk 1130e2713d update 2023-01-19 13:47:48 +01:00
Freddy Kristiansen bfe872fc91
Refactor ReadSettings and add tests (#357)
Issue #171 create a workspace file when creating a project
Issue #356 Publish to AppSource fails in multi project repo

ReadSettings has been refactored to allow organization wide settings to be added as well. CI Tests have been added to cover ReadSettings.

The primary change is to ensure that $baseFolder is always the $baseFolder and $projectFolder is always a project folder (they are the same in a single project repo).
ReadSettings and more now have two parameters: baseFolder and project - which clearly specifies when to read project settings files and when to read repo settings files only
Comments have been added to ReadSettings and MergeCustomObjectIntoOrderedDictionary

Co-authored-by: freddydk <freddyk@microsoft.com>
2023-01-19 10:08:56 +01:00
freddydk 4410a7cf0f Add go.microsoft.com links 2022-11-27 22:41:41 +01:00
Freddy Kristiansen f55d958ebe
Update README.md
Co-authored-by: Maria Zhelezova <43066499+mazhelez@users.noreply.github.com>
2022-11-24 17:08:19 +01:00
freddydk fbb9edbb72 url 2022-11-24 09:51:38 +01:00
freddydk f8203e2164 remove title 2022-11-24 09:43:29 +01:00
freddydk 86adc66360 fix URLs 2022-11-24 09:30:02 +01:00
freddydk 5986597882 rename 2022-11-24 09:17:55 +01:00
freddydk 9856ef37fa fix cont 2022-11-24 09:12:56 +01:00
freddydk e7eae5bd74 fix 2022-11-24 08:46:33 +01:00
freddydk 59309be2bf rename 2022-11-24 08:33:09 +01:00
freddydk 905cb35c40 BCPT Test Results Scenario 2022-08-30 17:21:49 +02:00
freddydk 3d3f3d6fe9 readme changes 2022-05-28 06:12:29 +02:00
BW-PA 4d334eb8cf
Update README.md
just some markdown formatting to improve readability of the links.  Judging by the way you had formatted it originally I think you intended to have it as a list anyway?  Can cancel this PR if that wasn't the case.

Also used this as an exercise for following your steps outlined in "Contributing"
2022-05-27 00:55:32 +10:00
freddydk 92d091cdba docs fixes 2022-05-26 10:42:55 +02:00
PooyaKharamesh bcb09ca9b8
Merge branch 'main' into main 2021-12-26 18:03:12 +01:00
Tino Teuber 6fff242df8
Link corrected 2021-12-13 09:30:55 +01:00
PooyaKharamesh 8b1203de11 Branching strategy 2021-12-10 16:06:13 +01:00
Freddy Kristiansen 508852d865 update index + 14+15 2021-12-07 22:32:03 +01:00
Freddy Kristiansen 234a1f92fd rename and move 2021-12-07 22:24:47 +01:00
Freddy Kristiansen 145916d569
Merge pull request #49 from freddydk/main
missing changes
2021-12-06 19:46:06 +01:00
Freddy Kristiansen c60f7f73b0 Merge branch 2021-12-06 19:44:18 +01:00
Freddy Kristiansen 2c87d92063 missing updates 2021-12-06 19:42:40 +01:00
Freddy Kristiansen 2da2ff3ab1
Merge branch 'main' into merge 2021-12-06 19:35:37 +01:00
PooyaKharamesh df319670e2 2021-12-06 15:16:42 +01:00
Susanne Windfeld Pedersen 178aa9e9d0
edits 2021-12-06 15:08:30 +01:00
Freddy Kristiansen 1e36f8d47b wordig 2021-12-05 07:05:05 +01:00
Freddy Kristiansen 5ee80d1df3 githubrunner 2021-12-05 00:18:28 +01:00
Freddy Kristiansen 7ce22899f5 settinsg 2021-11-27 08:41:07 +01:00
Freddy Kristiansen 05a272709a Scenario #5 2021-11-25 15:03:05 +01:00
Freddy Kristiansen da1a2fa462 Scenario #4 2021-11-25 14:31:45 +01:00
Freddy Kristiansen 1f7b1e3655 scenario #3 2021-11-25 13:44:09 +01:00
Freddy Kristiansen 2431b44dcd Add scenario #2 2021-11-25 11:24:26 +01:00
Freddy Kristiansen f0ded74fe2 scenario 1 complete 2021-11-25 11:10:14 +01:00
Freddy Kristiansen 7862cd15a6 scenario 1 2021-11-25 10:48:56 +01:00
Freddy Kristiansen 0f199249e7 Readme 2021-11-24 15:10:20 +01:00
Freddy Kristiansen 937a61fb39 Initial commit 2021-10-05 22:28:22 +02:00
Microsoft Open Source 3faeb48ac7 README.md updated to template 2021-10-05 04:57:27 -07:00
microsoft-github-operations[bot] 40693ead7a
README.md: Setup instructions 2021-10-05 11:46:35 +00:00