Skip to content

Commit 7700ec4

Browse files
authored
Add support for AL-Go development in GitHub codespaces (microsoft#1380)
Add a devcontainer.json file to install pre-commit and BCContainerHelper to make AL-Go development from codespaces easier.
1 parent 622bac7 commit 7700ec4

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.devcontainer/devcontainer.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:latest",
3+
"tasks": {
4+
"build": "",
5+
"test": "pwsh -File Tests/runtests.ps1",
6+
"run": ""
7+
},
8+
"features": {
9+
"ghcr.io/devcontainers/features/powershell:1": {
10+
"modules": "BcContainerHelper,Pester"
11+
},
12+
"ghcr.io/devcontainers/features/github-cli:1": {}
13+
},
14+
"postCreateCommand": "pip install pre-commit && pre-commit install --install-hooks --overwrite",
15+
"customizations": {
16+
"vscode": {
17+
"extensions": [
18+
"GitHub.copilot",
19+
"GitHub.copilot-chat",
20+
"GitHub.vscode-github-actions",
21+
"GitHub.vscode-pull-request-github",
22+
"ms-vscode.powershell"
23+
],
24+
"settings": {
25+
"terminal.integrated.defaultProfile.linux": "pwsh"
26+
}
27+
}
28+
}
29+
}

Scenarios/Contribute.md

+6
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ You can also run the end to end tests directly from VS Code, by providing the fo
8484
|$global:pteTemplate| String | URL for your PTE template (like `freddyk/AL-Go-PTE@main` or `freddydk/AL-Go@main\|Templates/Per Tenant Extension` for using your AL-Go fork directly) |
8585
|$global:appSourceTemplate| String | URL for your PTE template (like `freddyk/AL-Go-AppSource@main` or `freddydk/AL-Go@main\|Templates/AppSource App` for using your AL-Go fork directly) |
8686

87+
## GitHub Codespaces
88+
89+
AL-Go supports developing from GitHub Codespaces. You can create codespaces by going to: [https://github.com/codespaces/new](https://github.com/codespaces/new?skip_quickstart=true&repo=413794983&ref=main). From here you can create codespace either for microsoft/AL-Go or for your fork of AL-Go.
90+
91+
Codespaces come pre-configured with Pre-Commit and with latest BCContainerHelper version installed.
92+
8793
______________________________________________________________________
8894

8995
[back](../README.md)

0 commit comments

Comments
 (0)