Skip to content

Commit 41e5a1d

Browse files
committed
CI: Check devcontainer build
1 parent bdd5443 commit 41e5a1d

File tree

6 files changed

+39
-0
lines changed

6 files changed

+39
-0
lines changed

.devcontainer/devcontainer.json

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"installYarnUsingApt": false,
1313
"version": "22"
1414
},
15+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
1516
"ghcr.io/nikobockerman/devcontainer-features/yarn-persistent-cache:1": {}
1617
},
1718
"containerEnv": {
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Check - devcontainer
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/actions/yarn-project-setup/**"
7+
- ".github/workflows/check-devcontainer-build.yaml"
8+
- "package.json"
9+
- "yarn.lock"
10+
- ".devcontainer/**"
11+
workflow_call:
12+
workflow_dispatch:
13+
14+
jobs:
15+
devcontainer-build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- name: Setup yarn tools
21+
uses: ./.github/actions/yarn-project-setup
22+
- name: Check devcontainer
23+
run: yarn run check:devcontainer

.github/workflows/ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13+
check-devcontainer:
14+
uses: ./.github/workflows/check-devcontainer.yaml
1315
check-github-actions:
1416
uses: ./.github/workflows/check-github-actions.yaml
1517
check-mypy:

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"check:yarn:dedupe": "yarn dedupe --check",
55
"check:prettier": "prettier --check .",
66
"check:pyright": "pyright",
7+
"check:devcontainer": "devcontainer build --workspace-folder . && yarn exec devcontainer up --workspace-folder . && yarn exec devcontainer exec --workspace-folder . uv run poe runalll",
78
"check:renovateconfig": "npx --package=renovate --yes -- renovate-config-validator --strict",
89
"fix:prettier": "prettier --write --cache-location .prettiercache ."
910
},
@@ -15,6 +16,7 @@
1516
"devDependencies": {
1617
"@action-validator/cli": "0.6.0",
1718
"@action-validator/core": "0.6.0",
19+
"@devcontainers/cli": "0.75.0",
1820
"prettier": "3.5.3",
1921
"pyright": "1.1.397"
2022
}

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ sync = ["sync:uv", "sync:yarn"]
2727
"check:ruff" = "ruff check"
2828
"check:ruff:format" = "ruff format --check"
2929
"check:pytest" = "pytest"
30+
"check:devcontainer" = "yarn run check:devcontainer"
3031
check = [
3132
"check:ruff",
3233
"check:ruff:format",

yarn.lock

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ __metadata:
2525
languageName: node
2626
linkType: hard
2727

28+
"@devcontainers/cli@npm:0.75.0":
29+
version: 0.75.0
30+
resolution: "@devcontainers/cli@npm:0.75.0"
31+
bin:
32+
devcontainer: devcontainer.js
33+
checksum: 10c0/5877947e6955dbc39c41af9dc6fb9cbe6d1fff4f6b347a9bba671ac133d94ab83eac59090607e22033edf2b0fb6cdca7cf09f18eb179c66491f823deb0522fd0
34+
languageName: node
35+
linkType: hard
36+
2837
"@isaacs/cliui@npm:^8.0.2":
2938
version: 8.0.2
3039
resolution: "@isaacs/cliui@npm:8.0.2"
@@ -678,6 +687,7 @@ __metadata:
678687
dependencies:
679688
"@action-validator/cli": "npm:0.6.0"
680689
"@action-validator/core": "npm:0.6.0"
690+
"@devcontainers/cli": "npm:0.75.0"
681691
prettier: "npm:3.5.3"
682692
pyright: "npm:1.1.397"
683693
languageName: unknown

0 commit comments

Comments
 (0)