Skip to content

Commit

Permalink
gha matrix example
Browse files Browse the repository at this point in the history
  • Loading branch information
juttayaya committed Mar 19, 2024
1 parent ddbeed8 commit 7a8e292
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gha-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: GHA Matrix Examples
on:
workflow_dispatch:

jobs:
test_matrix_a:
runs-on: ubuntu-latest
strategy:
matrix:
type_x: [type_x_00, type_x_01, type_x_02]

steps:
-
name: Checkout
uses: actions/checkout@v4

-
name: Print type_x
run: |
echo "type_x key:${{ matrix.type_x }}"
test_matrix_b:
runs-on: ubuntu-latest
strategy:
matrix:
type_a: [type_a_00, type_a_01, type_a_02]

steps:
-
name: Checkout
uses: actions/checkout@v4

-
name: Print type_a
run: |
echo "type_a key:${{ matrix.type_a }}"

0 comments on commit 7a8e292

Please sign in to comment.