Skip to content

Update devcontainer publishing path #16

Update devcontainer publishing path

Update devcontainer publishing path #16

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@v3
- 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@v3
- 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