Add mirror/keyserver override support across feature installers #26
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "PR - Test Updated Features (arm64)" | |
| on: | |
| pull_request: | |
| # NOTE: To extend this workflow to other features, add path entries below | |
| # following the same pattern, e.g.: | |
| # - "src/<feature-name>/**" | |
| # - "test/<feature-name>/**" | |
| paths: | |
| - "src/powershell/**" | |
| - "test/powershell/**" | |
| jobs: | |
| detect-changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| features: ${{ steps.filter.outputs.changes }} | |
| steps: | |
| - uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| # NOTE: To extend this workflow to other features, add filter entries below | |
| # following the same pattern, e.g.: | |
| # <feature-name>: ./**/<feature-name>/** | |
| filters: | | |
| powershell: ./**/powershell/** | |
| test: | |
| needs: [detect-changes] | |
| runs-on: ubuntu-24.04-arm | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| features: ${{ fromJSON(needs.detect-changes.outputs.features) }} | |
| # NOTE: ubuntu:focal and debian:11 are excluded because they ship | |
| # GLIBC 2.31, but PowerShell >= 7.6.0 requires GLIBC 2.33+ on arm64. | |
| # ubuntu:focal reached EOL Apr 2025; debian:11 reaches EOL Aug 2026. | |
| baseImage: | |
| [ | |
| "ubuntu:jammy", | |
| "debian:12", | |
| "mcr.microsoft.com/devcontainers/base:ubuntu", | |
| "mcr.microsoft.com/devcontainers/base:debian", | |
| "mcr.microsoft.com/devcontainers/base:noble" | |
| ] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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: | |
| needs: [detect-changes] | |
| runs-on: ubuntu-24.04-arm | |
| continue-on-error: true | |
| strategy: | |
| matrix: | |
| features: ${{ fromJSON(needs.detect-changes.outputs.features) }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - 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 . |