Skip to content

fix: shallowclone option is not working #109

fix: shallowclone option is not working

fix: shallowclone option is not working #109

Workflow file for this run

name: "CI - Test Features"
on:
pull_request:
branches:
- main
paths:
- src/**
- test/**
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
detect-changes:
runs-on: ubuntu-latest
outputs:
features: ${{ steps.filter.outputs.changes }}
steps:
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
fish: ./**/fish/**
homebrew: ./**/homebrew/**
test-changed:
if: ${{ github.event_name == 'pull_request' }}
needs:
- detect-changes
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features: ${{ fromJSON(needs.detect-changes.outputs.features) }}
baseImage:
- mcr.microsoft.com/devcontainers/base:debian
- mcr.microsoft.com/devcontainers/base:ubuntu
- debian:oldoldstable-slim
- debian:oldstable-slim
- debian:stable-slim
- ubuntu:focal
- ubuntu:jammy
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 }} .
test-changed-scenarios:
if: ${{ github.event_name == 'pull_request' }}
needs:
- detect-changes
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features: ${{ fromJSON(needs.detect-changes.outputs.features) }}
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 .
test-all:
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- fish
- homebrew
baseImage:
- mcr.microsoft.com/devcontainers/base:debian
- mcr.microsoft.com/devcontainers/base:ubuntu
- debian:oldoldstable-slim
- debian:oldstable-slim
- debian:stable-slim
- ubuntu:focal
- ubuntu:jammy
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 }} .
test-all-scenarios:
if: ${{ github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
features:
- fish
- homebrew
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 .