-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (50 loc) · 1.47 KB
/
Copy pathdevcontainer.yml
File metadata and controls
55 lines (50 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Validate DevContainer
on:
push:
branches: [main]
paths:
- '.devcontainer/**'
- 'mise.toml'
- 'mise.dev.toml'
- '.github/workflows/devcontainer.yml'
pull_request:
paths:
- '.devcontainer/**'
- 'mise.toml'
- 'mise.dev.toml'
- '.github/workflows/devcontainer.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
devcontainer-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and run Dev Container task
uses: devcontainers/ci@v0.3
with:
# Run a simple validation command inside the devcontainer
runCmd: |
# Add mise shims to PATH (recommended for non-interactive setups)
export PATH="$HOME/.local/share/mise/shims:$PATH"
echo "=== Validating DevContainer Setup ==="
echo "Checking mise installation and health..."
mise --version
mise doctor
echo ""
echo "Listing installed mise tools..."
mise list
echo ""
echo "Checking Flutter installation..."
flutter --version
echo ""
echo "Checking Node.js installation..."
node --version
npm --version
echo ""
echo "Running Flutter doctor..."
flutter doctor
echo ""
echo "=== DevContainer validation complete! ==="