From f8ed278e23ec34af78e7a8a5e5d105379e407ee3 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Thu, 27 Jun 2024 21:43:04 -0400 Subject: [PATCH] add version matrix --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9d5207c0..9eb59fdc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,26 @@ on: branches: - master jobs: + VersionMatrix: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - name: Set + id: set-matrix + run: | + echo 'matrix={"elixir":[{"version":"1.10.4","otp":"23.0"},{"version":"1.11.2","otp":"23.0"}]}' >> $GITHUB_OUTPUT + + TestingMatrix: + runs-on: ubuntu-latest + needs: VersionMatrix + strategy: + matrix: ${{fromJson(needs.VersionMatrix.outputs.matrix)}} + name: Elixir ${{ matrix.version }} with OTP ${{ matrix.otp }} + steps: + - name: echo + run: echo ${{ matrix.otp }} ${{ matrix.version }} + Test: runs-on: ubuntu-latest env: