Skip to content

Merge branch 'main' of https://github.com/jmuchovej/devcontainers #29

Merge branch 'main' of https://github.com/jmuchovej/devcontainers

Merge branch 'main' of https://github.com/jmuchovej/devcontainers #29

name: "CI - Test Features"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test-autogenerated:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- asdf
baseImage:
- debian:latest
- ubuntu:latest
- alpine:latest
- mcr.microsoft.com/devcontainers/base:ubuntu
- mcr.microsoft.com/devcontainers/base:alpine
steps:
- uses: actions/checkout@v3
- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
- name: "Generating tests for '${{ matrix.features }}' against '${{ matrix.baseImage }}'"
run: devcontainer features test --skip-scenarios -f ${{ matrix.features }} -i ${{ matrix.baseImage }} --project-folder ./features/
test-scenarios:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- asdf
steps:
- uses: actions/checkout@v3
- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
- name: "Generating tests for '${{ matrix.features }}' scenarios"
run: devcontainer features test -f ${{ matrix.features }} --skip-autogenerated --project-folder ./features/
# test-global:
# runs-on: ubuntu-latest
# continue-on-error: true
# steps:
# - uses: actions/checkout@v3
# - name: "Install latest devcontainer CLI"
# run: npm install -g @devcontainers/cli
# - name: "Testing global scenarios"
# run: devcontainer features test --global-scenarios-only ./features/