aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJosh Spicer <joshspicer@github.com>2022-08-24 00:23:21 +0300
committerGitHub <noreply@github.com>2022-08-24 00:23:21 +0300
commitf82307ad60514d1e912a9aa2b64204721fe955eb (patch)
treebc1799743ef7620c3e460d54f77c1fac3003fd4c /.github
parent84f4996643b84c6f3dcd5c3edc72ae176dceaf65 (diff)
test updates to adopt https://github.com/devcontainers/cli/pull/124 (#114)
* test updates to adopt https://github.com/devcontainers/cli/pull/124 * remove accidental tgz check in * typo in option * typo in python install script on dotnet6/jammy branch * no scenarios * code review and test name * Delete install_os_provided_python.sh
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test-all.yaml68
-rw-r--r--.github/workflows/test-manual.yaml6
-rw-r--r--.github/workflows/test-pr.yaml28
-rw-r--r--.github/workflows/test-scenarios.yaml19
4 files changed, 89 insertions, 32 deletions
diff --git a/.github/workflows/test-all.yaml b/.github/workflows/test-all.yaml
index 6b453f8..621ee83 100644
--- a/.github/workflows/test-all.yaml
+++ b/.github/workflows/test-all.yaml
@@ -37,13 +37,73 @@ jobs:
"rust",
"sshd",
"terraform",
+ ]
+ baseImage:
+ [
+ "ubuntu:focal",
+ "ubuntu:jammy",
+ "debian:11",
+ "mcr.microsoft.com/devcontainers/base:ubuntu",
+ "mcr.microsoft.com/devcontainers/base:debian",
]
- baseImage: [ "ubuntu:focal", "ubuntu:jammy", "debian:11", "mcr.microsoft.com/vscode/devcontainers/base:ubuntu", "mcr.microsoft.com/vscode/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:
+ runs-on: ubuntu-latest
+ continue-on-error: true
+ strategy:
+ matrix:
+ features: [
+ "anaconda",
+ "aws-cli",
+ "azure-cli",
+ "common-utils",
+ "desktop-lite",
+ "docker-from-docker",
+ "docker-in-docker",
+ "dotnet",
+ "git",
+ "git-lfs",
+ "github-cli",
+ "go",
+ "hugo",
+ "java",
+ "kubectl-helm-minikube",
+ "node",
+ "nvidia-cuda",
+ "oryx",
+ "php",
+ "powershell",
+ "python",
+ "ruby",
+ "rust",
+ "sshd",
+ "terraform",
+ ]
+ 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 .
+
+ test-global:
+ runs-on: ubuntu-latest
+ continue-on-error: true
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: "Install latest devcontainer CLI"
+ run: npm install -g @devcontainers/cli
+
+ - name: "Testing global scenarios"
+ run: devcontainer features test --global-scenarios-only . \ No newline at end of file
diff --git a/.github/workflows/test-manual.yaml b/.github/workflows/test-manual.yaml
index 3e285a7..333dbb8 100644
--- a/.github/workflows/test-manual.yaml
+++ b/.github/workflows/test-manual.yaml
@@ -3,7 +3,7 @@ on:
workflow_dispatch:
inputs:
features:
- description: "list of features to execute tests against"
+ description: "List of features to execute tests against"
required: true
default: "go dotnet"
baseImage:
@@ -22,7 +22,7 @@ jobs:
- 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 '${{ github.event.inputs.features }}' against '${{ github.event.inputs.baseImage }}'"
- run: devcontainer features test --features ${{ github.event.inputs.features }} --base-image ${{ github.event.inputs.baseImage }} --collection-folder `pwd` --log-level ${{ github.event.inputs.logLevel }}
+ run: devcontainer features test --features ${{ github.event.inputs.features }} --base-image ${{ github.event.inputs.baseImage }} --log-level ${{ github.event.inputs.logLevel }} .
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
diff --git a/.github/workflows/test-scenarios.yaml b/.github/workflows/test-scenarios.yaml
deleted file mode 100644
index cc71737..0000000
--- a/.github/workflows/test-scenarios.yaml
+++ /dev/null
@@ -1,19 +0,0 @@
-name: "Test Scenarios"
-on:
- pull_request:
- push:
- branches:
- - main
- workflow_dispatch:
-
-jobs:
- scenarios:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
-
- - name: "Install latest devcontainer CLI"
- run: npm install -g @devcontainers/cli@0.12.1
-
- - name: "Running predefined test scenarios"
- run: devcontainer features test --scenarios `pwd`/test-scenarios -c `pwd`