aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Spicer <josh@joshspicer.com>2022-05-12 19:25:56 +0300
committerGitHub <noreply@github.com>2022-05-12 19:25:56 +0300
commit2707a37ca0d4a45c7487f856bf95f8c5e10bce94 (patch)
tree3b84759b62090e069c1352547fb8f1155f980122
parent9ec1eacf025434422bb7ab2d41addc6d66e22458 (diff)
matrix (#10)
* try matrix * quotes
-rw-r--r--.github/workflows/test.yaml8
-rw-r--r--collection/dotnet/test.sh9
2 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 8d3e5ff..b4ffad7 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -9,8 +9,12 @@ on:
jobs:
test:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ features: [ "go", "dotnet", "go,dotnet" ]
+ baseImage: [ "mcr.microsoft.com/vscode/devcontainers/base:focal" ]
steps:
- uses: actions/checkout@v2
- - name: Invoke devcontainer-cli features-test
- run: npx --yes ./dev-containers-cli-0.1.0.tgz features-test -c `pwd`/collection -f go
+ - name: Invoke CLI testing ${{ matrix.features }} against ${{ matrix.baseImage }}
+ run: npx --yes ./dev-containers-cli-0.1.0.tgz features-test -c `pwd`/collection -f ${{ matrix.features }}
diff --git a/collection/dotnet/test.sh b/collection/dotnet/test.sh
new file mode 100644
index 0000000..cdaa50a
--- /dev/null
+++ b/collection/dotnet/test.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+echo 'Testing dotnet!'
+
+dotnet --list-sdks
+
+echo 'Done!' \ No newline at end of file