ruby before jekyll and format workflows

This commit is contained in:
Josh Spicer 2022-05-26 02:09:32 +00:00 committed by GitHub
parent 7f182aaea2
commit 1678006363
2 changed files with 43 additions and 42 deletions

View file

@ -1,8 +1,8 @@
name: "Test Features (CI)" name: "Test Features (CI)"
on: on:
push: push:
branches: branches:
- main - main
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -10,38 +10,39 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: true continue-on-error: true
strategy: strategy:
matrix: matrix:
features: [ features: [
"anaconda", "anaconda",
"aws-cli", "aws-cli",
"azure-cli", "azure-cli",
"common", "common",
"desktop-lite", "desktop-lite",
"docker-from-docker", "docker-from-docker",
"docker-in-docker", "docker-in-docker",
"dotnet", "dotnet",
"git", "git",
"git-lfs", "git-lfs",
"github-cli", "github-cli",
"go", "go",
"java gradle", # Install 'java', then 'gradle' "java gradle", # Install 'java', then 'gradle'
"hugo", "hugo",
"java", "java",
"jekyll", "ruby jekyll", # Install 'ruby', then 'jekyll'
"python jupyterlab", # Install 'python', then 'jupyterlab' "python jupyterlab", # Install 'python', then 'jupyterlab'
"kubectl-helm-minikube", "kubectl-helm-minikube",
"maven", "maven",
"node", "node",
"php", "php",
"powershell", "powershell",
"python", "python",
"ruby", "ruby",
"rust", "rust",
"sshd", "sshd",
"terraform" ] "terraform",
baseImage: [ "ubuntu:focal" ] ]
baseImage: ["ubuntu:focal"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: " Testing '${{ matrix.features }}' against '${{ matrix.baseImage }}'" - name: " Testing '${{ matrix.features }}' against '${{ matrix.baseImage }}'"
run: npx --yes ./devcontainers-cli-0.3.0.tgz features test -f ${{ matrix.features }} -i ${{ matrix.baseImage }} -c `pwd` run: npx --yes ./devcontainers-cli-0.3.0.tgz features test -f ${{ matrix.features }} -i ${{ matrix.baseImage }} -c `pwd`

View file

@ -1,19 +1,19 @@
name: "Test Features (Manual)" name: "Test Features (Manual)"
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
features: features:
description: 'list of features to execute tests against' description: "list of features to execute tests against"
required: true required: true
default: 'go dotnet' default: "go dotnet"
baseImage: baseImage:
description: 'Base image' description: "Base image"
required: true required: true
default: 'ubuntu:focal' default: "ubuntu:focal"
logLevel: logLevel:
description: 'Log Level (info/debug/trace)' description: "Log Level (info/debug/trace)"
required: true required: true
default: 'info' default: "info"
jobs: jobs:
test: test:
@ -22,4 +22,4 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: " Testing '${{ github.event.inputs.features }}' against '${{ github.event.inputs.baseImage }}'" - name: " Testing '${{ github.event.inputs.features }}' against '${{ github.event.inputs.baseImage }}'"
run: npx --yes ./devcontainers-cli-0.3.0.tgz features test --features ${{ github.event.inputs.features }} --base-image ${{ github.event.inputs.baseImage }} --collection-folder `pwd` --log-level ${{ github.event.inputs.logLevel }} run: npx --yes ./devcontainers-cli-0.3.0.tgz features test --features ${{ github.event.inputs.features }} --base-image ${{ github.event.inputs.baseImage }} --collection-folder `pwd` --log-level ${{ github.event.inputs.logLevel }}