Skip to content

Commit

Permalink
Updated AL-Go System Files (microsoft#21562)
Browse files Browse the repository at this point in the history
## Preview

Note that when using the preview version of AL-Go for GitHub, you need
to Update your AL-Go system files, as soon as possible when told to do
so.

### Issues
- Issue microsoft#312 Branching enhancements
- Issue #229 Create Release action tags wrong commit
- Issue microsoft#283 Create Release workflow uses deprecated actions

### Build modes support
AL-Go projects can now be built in different modes, by specifying the
_buildModes_ setting in AL-Go-Settings.json. Read more about build modes
in the [Basic Repository
settings](https://github.com/microsoft/AL-Go/blob/main/Scenarios/settings.md#basic-repository-settings).

### Continuous Delivery

Continuous Delivery can now run from other branches than main. By
specifying a property called branches, containing an array of branches
in the deliveryContext json construct, the artifacts generated from this
branch are also delivered. The branch specification can include
wildcards (like release/*). Default is main, i.e. no changes to
functionality.

### Continuous Deployment

Continuous Deployment can now run from other branches than main. By
creating a repo setting (.github/AL-Go-Settings.json) called
**`<environmentname>-Branches`**, which is an array of branches, which
will deploy the generated artifacts to this environment. The branch
specification can include wildcards (like release/*), although this
probably won't be used a lot in continuous deployment. Default is main,
i.e. no changes to functionality.

### Create Release
When locating artifacts for the various projects, the SHA used to build
the artifact is used for the release tag
If all projects are not available with the same SHA, this error is
thrown: **The build selected for release doesn't contain all projects.
Please rebuild all projects by manually running the CI/CD workflow and
recreate the release.**
There is no longer a hard dependency on the main branch name from Create
Release.

### Experimental Support
Setting the repo setting "shell" to "pwsh", followed by running Update
AL-Go System Files, will cause all PowerShell code to be run using
PowerShell 7 instead of PowerShell 5. This functionality is
experimental. Please report any issues at
https://github.com/microsoft/AL-Go/issues
Setting the repo setting "runs-on" to "Ubuntu-Latest", followed by
running Update AL-Go System Files, will cause all non-build jobs to run
using Linux. This functionality is experimental. Please report any
issues at https://github.com/microsoft/AL-Go/issues

## v2.2

### Enhancements
- Container Event log is added as a build artifact if builds or tests
are failing

### Issues
- Issue microsoft#280 Overflow error when test result summary was too big
- Issue #282, 292 AL-Go for GitHub causes GitHub to issue warnings
- Issue microsoft#273 Potential security issue in Pull Request Handler in Open
Source repositories
- Issue microsoft#303 PullRequestHandler fails on added files
- Issue microsoft#299 Multi-project repositories build all projects on Pull
Requests
- Issue microsoft#291 Issues with new Pull Request Handler 
- Issue microsoft#287 AL-Go pipeline fails in ReadSettings step

### Changes
- VersioningStrategy 1 is no longer supported. GITHUB_ID has changed
behavior (Issue microsoft#277)

Co-authored-by: aholstrup1 <[email protected]>
  • Loading branch information
aholstrup1 and aholstrup1 authored Dec 30, 2022
1 parent d9f8340 commit e00cf67
Show file tree
Hide file tree
Showing 16 changed files with 492 additions and 215 deletions.
42 changes: 42 additions & 0 deletions .github/RELEASENOTES.copy.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

Note that when using the preview version of AL-Go for GitHub, you need to Update your AL-Go system files, as soon as possible when told to do so.

### Issues
- Issue #312 Branching enhancements
- Issue #229 Create Release action tags wrong commit
- Issue #283 Create Release workflow uses deprecated actions

### Build modes support
AL-Go projects can now be built in different modes, by specifying the _buildModes_ setting in AL-Go-Settings.json. Read more about build modes in the [Basic Repository settings](https://github.com/microsoft/AL-Go/blob/main/Scenarios/settings.md#basic-repository-settings).

### Continuous Delivery

Continuous Delivery can now run from other branches than main. By specifying a property called branches, containing an array of branches in the deliveryContext json construct, the artifacts generated from this branch are also delivered. The branch specification can include wildcards (like release/*). Default is main, i.e. no changes to functionality.

### Continuous Deployment

Continuous Deployment can now run from other branches than main. By creating a repo setting (.github/AL-Go-Settings.json) called **`<environmentname>-Branches`**, which is an array of branches, which will deploy the generated artifacts to this environment. The branch specification can include wildcards (like release/*), although this probably won't be used a lot in continuous deployment. Default is main, i.e. no changes to functionality.

### Create Release
When locating artifacts for the various projects, the SHA used to build the artifact is used for the release tag
If all projects are not available with the same SHA, this error is thrown: **The build selected for release doesn't contain all projects. Please rebuild all projects by manually running the CI/CD workflow and recreate the release.**
There is no longer a hard dependency on the main branch name from Create Release.

### Experimental Support
Setting the repo setting "shell" to "pwsh", followed by running Update AL-Go System Files, will cause all PowerShell code to be run using PowerShell 7 instead of PowerShell 5. This functionality is experimental. Please report any issues at https://github.com/microsoft/AL-Go/issues
Setting the repo setting "runs-on" to "Ubuntu-Latest", followed by running Update AL-Go System Files, will cause all non-build jobs to run using Linux. This functionality is experimental. Please report any issues at https://github.com/microsoft/AL-Go/issues

## v2.2

### Enhancements
- Container Event log is added as a build artifact if builds or tests are failing

### Issues
- Issue #280 Overflow error when test result summary was too big
- Issue #282, 292 AL-Go for GitHub causes GitHub to issue warnings
- Issue #273 Potential security issue in Pull Request Handler in Open Source repositories
- Issue #303 PullRequestHandler fails on added files
- Issue #299 Multi-project repositories build all projects on Pull Requests
- Issue #291 Issues with new Pull Request Handler
- Issue #287 AL-Go pipeline fails in ReadSettings step

### Changes
- VersioningStrategy 1 is no longer supported. GITHUB_ID has changed behavior (Issue #277)

## v2.1

### Issues
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/AddExistingAppOrTestApp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

defaults:
run:
shell: PowerShell
shell: powershell

jobs:
AddExistingAppOrTestApp:
Expand All @@ -34,11 +34,13 @@ jobs:
id: init
uses: microsoft/AL-Go-Actions/WorkflowInitialize@preview
with:
shell: powershell
eventId: "DO0090"

- name: Add existing app
uses: microsoft/AL-Go-Actions/AddExistingApp@preview
with:
shell: powershell
parentTelemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
project: ${{ github.event.inputs.project }}
url: ${{ github.event.inputs.url }}
Expand All @@ -48,5 +50,6 @@ jobs:
if: always()
uses: microsoft/AL-Go-Actions/WorkflowPostProcess@preview
with:
shell: powershell
eventId: "DO0090"
telemetryScopeJson: ${{ steps.init.outputs.telemetryScopeJson }}
Loading

0 comments on commit e00cf67

Please sign in to comment.