Skip to content

Commit 8a17a35

Browse files
committed
ci: add modes to the matrix
1 parent 8e3f02a commit 8a17a35

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- ubuntu-latest
2323
- codspeedhq-arm64-ubuntu-22.04
2424
- codspeedhq-arm64-ubuntu-24.04
25+
mode:
26+
- instrumentation
27+
- walltime
2528

2629
runs-on: ${{ matrix.os }}
2730
env:
@@ -31,12 +34,14 @@ jobs:
3134
- name: Check basic action execution
3235
uses: ./
3336
with:
37+
mode: ${{ matrix.mode }}
3438
run: echo "Working!"
3539
- name: Check action execution with env variables
3640
uses: ./
3741
env:
3842
MY_ENV_VAR: "Hello"
3943
with:
44+
mode: ${{ matrix.mode }}
4045
run: |
4146
output=$(echo "$MY_ENV_VAR")
4247
if [ "$output" != "Hello" ]; then
@@ -46,12 +51,14 @@ jobs:
4651
- name: Check action in a custom directory
4752
uses: ./
4853
with:
54+
mode: ${{ matrix.mode }}
4955
working-directory: examples
5056
# Check that the directory is actually changed
5157
run: if [ $(basename $(pwd)) != "examples" ]; then exit 1; fi
5258
- name: Check action with multiline command
5359
uses: ./
5460
with:
61+
mode: ${{ matrix.mode }}
5562
run: |
5663
echo "Working";
5764
echo "with";
@@ -74,4 +81,5 @@ jobs:
7481
uses: ./
7582
with:
7683
runner-version: ${{ matrix.version }}
84+
mode: instrumentation
7785
run: echo "Testing version format ${{ matrix.version }}!"

0 commit comments

Comments
 (0)