2023-09-15 20:25:04 +03:00
|
|
|
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:
|
2023-09-17 22:52:23 +03:00
|
|
|
- wine
|
2023-09-15 20:25:04 +03:00
|
|
|
baseImage:
|
2023-09-17 22:52:23 +03:00
|
|
|
- mcr.microsoft.com/devcontainers/base:debian
|
2024-04-19 19:32:09 +03:00
|
|
|
- mcr.microsoft.com/devcontainers/base:ubuntu
|
2023-09-15 20:25:04 +03:00
|
|
|
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 }} .
|
|
|
|
|
|
|
|
test-scenarios:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
continue-on-error: true
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
features:
|
2023-09-17 22:52:23 +03:00
|
|
|
- wine
|
2023-09-15 20:25:04 +03:00
|
|
|
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 --skip-duplicated .
|