diff options
Diffstat (limited to '.github/workflows/test-pr.yaml')
-rw-r--r-- | .github/workflows/test-pr.yaml | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml index 7624701..c8dec8f 100644 --- a/.github/workflows/test-pr.yaml +++ b/.github/workflows/test-pr.yaml @@ -1,4 +1,4 @@ -name: "PR -Test Updated Features" +name: "PR - Test Updated Features" on: pull_request: @@ -50,14 +50,30 @@ jobs: "ubuntu:focal", "ubuntu:jammy", "debian:11", - "mcr.microsoft.com/vscode/devcontainers/base:ubuntu", - "mcr.microsoft.com/vscode/devcontainers/base:debian", + "mcr.microsoft.com/devcontainers/base:ubuntu", + "mcr.microsoft.com/devcontainers/base:debian", ] steps: - uses: actions/checkout@v2 - name: "Install latest devcontainer CLI" - run: npm install -g @devcontainers/cli@0.12.1 + run: npm install -g @devcontainers/cli - - name: "Testing '${{ matrix.features }}' against '${{ matrix.baseImage }}'" - run: devcontainer features test -f ${{ matrix.features }} -i ${{ matrix.baseImage }} -c `pwd` + - name: "Generating tests for '${{ matrix.features }}' against '${{ matrix.baseImage }}'" + run: devcontainer features test --skip-scenarios -f ${{ matrix.features }} -i ${{ matrix.baseImage }} . + + test-scenarios: + needs: [detect-changes] + runs-on: ubuntu-latest + continue-on-error: true + strategy: + matrix: + features: ${{ fromJSON(needs.detect-changes.outputs.features) }} + steps: + - uses: actions/checkout@v2 + + - name: "Install latest devcontainer CLI" + run: npm install -g @devcontainers/cli + + - name: "Testing '${{ matrix.features }}' scenarios" + run: devcontainer features test -f ${{ matrix.features }} --skip-autogenerated .
\ No newline at end of file |