From c623b336addf9eb003276bd59a3f7ddf7c2fcf3a Mon Sep 17 00:00:00 2001 From: David Maas Date: Fri, 26 Nov 2021 20:05:05 -0600 Subject: [PATCH] Added matrix-optional test --- .github/workflows/determine-rid.yml | 2 +- .github/workflows/matrix-optional.yml | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/matrix-optional.yml diff --git a/.github/workflows/determine-rid.yml b/.github/workflows/determine-rid.yml index 84fd09c..828c021 100644 --- a/.github/workflows/determine-rid.yml +++ b/.github/workflows/determine-rid.yml @@ -1,5 +1,5 @@ name: determine-rid Test -on: [push, workflow_dispatch] +on: [workflow_dispatch] jobs: test-unix: strategy: diff --git a/.github/workflows/matrix-optional.yml b/.github/workflows/matrix-optional.yml new file mode 100644 index 0000000..f7c4ec5 --- /dev/null +++ b/.github/workflows/matrix-optional.yml @@ -0,0 +1,19 @@ +name: Matrix Optional Test +on: [push, workflow_dispatch] +jobs: + test: + strategy: + fail-fast: false + matrix: + include: + - name: Not specified + - name: Specified + skip-thing: true + name: Test ${{matrix.name}} (${{matrix.skip-thing}}) + runs-on: ubuntu-latest + steps: + - name: Always ran + run: echo "Hello, world!" + - name: Sometimes ran + if: matrix.skip-thing != true + run: echo "Sometimes I'm skipped!" \ No newline at end of file