-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.35 KB
/
Copy pathtest-devcontainer.yml
File metadata and controls
49 lines (43 loc) · 1.35 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
name: Test Development Container
on:
push:
paths:
- '.devcontainer/**'
- '.github/workflows/test-devcontainer.yml'
pull_request:
paths:
- '.devcontainer/**'
jobs:
test-devcontainer:
name: Test Development Container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Development Container
run: |
cd .devcontainer
docker build -t shell-devcontainer .
- name: Test Environment
run: |
docker run --rm -v "$PWD:/workspace" \
shell-devcontainer /workspace/.devcontainer/test-environment.sh
- name: Test Project Build
run: |
docker run --rm -v "$PWD:/workspace" -w /workspace \
shell-devcontainer bash -c "
# Copy to writable directory
cp -r /workspace /tmp/test-workspace
cd /tmp/test-workspace
cmake --preset linux-debug
cmake --build build/linux-debug --parallel
cd build/linux-debug && ctest --output-on-failure
"
- name: Test REUSE Compliance
run: |
docker run --rm -v "$PWD:/workspace" -w /workspace \
shell-devcontainer bash -c "
python3 -c 'import reuse'
echo 'REUSE compliance tool available'
# Note: SBOM generation is now handled by Syft in CI/CD
"