Skip to content

Merge pull request #2 from bounverif/automated-documentation-update-8… #11

Merge pull request #2 from bounverif/automated-documentation-update-8…

Merge pull request #2 from bounverif/automated-documentation-update-8… #11

Workflow file for this run

name: "CI - Test Features"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
test-autogenerated:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- features-ansible
baseImage:
- buildpack-deps:bookworm-curl
- buildpack-deps:jammy-curl
steps:
- uses: actions/checkout@v4
- 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 }} ./features
test-scenarios:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
features:
- features-ansible
steps:
- uses: actions/checkout@v4
- 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 --skip-duplicated ./features
test-global:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "Install latest devcontainer CLI"
run: npm install -g @devcontainers/cli
- name: "Testing global scenarios"
run: devcontainer features test --global-scenarios-only ./features