Skip to content

Commit 1c350d9

Browse files
committed
feat(codespaces): customised devcontainer
1 parent f8ac6a6 commit 1c350d9

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ RUN \
2727
npm cache clean --force > /dev/null 2>&1 && \
2828
apt-get clean && \
2929
rm -rf /var/lib/apt/lists/*
30+
31+
COPY welcome-message.txt /usr/local/etc/vscode-dev-containers/first-run-notice.txt

.devcontainer/devcontainer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,42 @@
77
"features": {
88
"ghcr.io/devcontainers/features/desktop-lite:1": {},
99
"ghcr.io/devcontainers/features/github-cli:1": {}
10+
},
11+
12+
"forwardPorts": [
13+
8080,
14+
8181
15+
],
16+
"portsAttributes": {
17+
"8080": {
18+
"label": "Serenity Reports"
19+
},
20+
"8181": {
21+
"label": "Playwright Reports"
22+
}
23+
},
24+
"postCreateCommand": "npm ci",
25+
"waitFor": "postCreateCommand",
26+
"postAttachCommand": {
27+
"Serenity/JS Test Run": "npm test",
28+
"Serenity Reports Preview": "npx http-server -p 8080 target/site/serenity/",
29+
"Playwright Reports Preview": "npx http-server -p 8181 playwright-report"
30+
},
31+
32+
"customizations": {
33+
"vscode": {
34+
"extensions": [
35+
"dbaeumer.vscode-eslint",
36+
"editorconfig.editorconfig",
37+
"eamodio.gitlens",
38+
"ms-playwright.playwright",
39+
"stateful.runme"
40+
],
41+
"settings": {
42+
"workbench.editorAssociations": {
43+
"*.md": "runme"
44+
}
45+
}
46+
}
1047
}
1148
}

.devcontainer/welcome-message.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
👋 Welcome to your Serenity/JS GitHub Codespace!
2+
3+
🛠️ Your environment is fully configured and ready for you to explore the Serenity/JS framework.
4+
5+
🚀 Once the setup process in the terminal completes:
6+
- Open the port labeled "Serenity Reports" to view the test execution reports.
7+
- Open the port labeled "Playwright Report" to explore detailed Playwright test results.
8+
9+
ℹ️ Learn more at 👉 https://serenity-js.org/

0 commit comments

Comments
 (0)