Skip to content

Commit c623b33

Browse files
committed
Added matrix-optional test
1 parent cf7807a commit c623b33

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/determine-rid.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: determine-rid Test
2-
on: [push, workflow_dispatch]
2+
on: [workflow_dispatch]
33
jobs:
44
test-unix:
55
strategy:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Matrix Optional Test
2+
on: [push, workflow_dispatch]
3+
jobs:
4+
test:
5+
strategy:
6+
fail-fast: false
7+
matrix:
8+
include:
9+
- name: Not specified
10+
- name: Specified
11+
skip-thing: true
12+
name: Test ${{matrix.name}} (${{matrix.skip-thing}})
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Always ran
16+
run: echo "Hello, world!"
17+
- name: Sometimes ran
18+
if: matrix.skip-thing != true
19+
run: echo "Sometimes I'm skipped!"

0 commit comments

Comments
 (0)