Skip to content

Streamline workflows #2

Streamline workflows

Streamline workflows #2

Workflow file for this run

name: Test
on:
pull_request:
push:
branches: [main]
workflow_call:
workflow_dispatch:
jobs:
test-autogenerated:
name: Feature ${{ matrix.features }} » ${{ matrix.baseImage }}
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- color
- hello
baseImage:
- debian:latest
- ubuntu:latest
- mcr.microsoft.com/devcontainers/base:ubuntu
steps:
- uses: actions/checkout@v4
- run: npm install -g @devcontainers/cli
- run: devcontainer features test -f ${{ matrix.features }} -i ${{ matrix.baseImage }} --skip-scenarios .
test-scenarios:
name: Feature ${{ matrix.features }}
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- color
- hello
steps:
- uses: actions/checkout@v4
- run: npm install -g @devcontainers/cli
- run: devcontainer features test -f ${{ matrix.features }} --skip-autogenerated --skip-duplicated .
test-global:
name: Test global scenarios
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- run: npm install -g @devcontainers/cli
- run: devcontainer features test --global-scenarios-only .