-
Notifications
You must be signed in to change notification settings - Fork 97
44 lines (37 loc) · 1.22 KB
/
devcontainer-feature-test.yaml
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
name: "Test dev container feature"
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
paths:
- "deploy/devcontainer-feature/**"
- ".github/workflows/devcontainer-feature-test.yaml"
branches:
- main
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
baseImage:
- mcr.microsoft.com/devcontainers/base:ubuntu
- mcr.microsoft.com/devcontainers/base:debian
steps:
- uses: actions/checkout@v4
- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
- name: "Generating tests for Radius CLI (default) against '${{ matrix.baseImage }}'"
run: devcontainer features test --skip-scenarios -f radcli -i ${{ matrix.baseImage }} .
working-directory: ./deploy/devcontainer-feature
test-scenarios:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
- name: "Generating tests for radcli scenarios"
run: devcontainer features test -f radcli --skip-autogenerated --skip-duplicated .
working-directory: ./deploy/devcontainer-feature