-
Notifications
You must be signed in to change notification settings - Fork 42
53 lines (45 loc) · 1.6 KB
/
container-test.yml
File metadata and controls
53 lines (45 loc) · 1.6 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
name: Container Tests (Podman Rootless)
on:
pull_request:
paths:
- 'CONTAINER.md'
- 'Containerfile.scratch'
- '.github/workflows/container-test.yml'
workflow_dispatch:
jobs:
podman-rootless-test:
name: Podman Rootless Mode Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Create test directories
run: mkdir -p ${{ github.workspace }}/test-reports
- name: Pull AgentReady container
run: podman pull ghcr.io/ambient-code/agentready:latest
- name: Run assessment with Podman rootless command
run: |
podman run --rm \
--user $(id -u):$(id -g) \
--userns=keep-id \
-e GIT_CONFIG_COUNT=1 \
-e GIT_CONFIG_KEY_0=safe.directory \
-e GIT_CONFIG_VALUE_0=/repo \
-v ${{ github.workspace }}:/repo:ro,z \
-v ${{ github.workspace }}/test-reports:/reports:z \
ghcr.io/ambient-code/agentready:latest \
assess /repo --output-dir /reports
- name: Verify reports generated
run: |
echo "=== Generated Reports ==="
ls -la ${{ github.workspace }}/test-reports/
ls ${{ github.workspace }}/test-reports/*.json
ls ${{ github.workspace }}/test-reports/*.html
ls ${{ github.workspace }}/test-reports/*.md
- name: Upload test reports
uses: actions/upload-artifact@v4
if: always()
with:
name: podman-rootless-test-reports
path: ${{ github.workspace }}/test-reports/
retention-days: 30