Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 2.29 KB

File metadata and controls

64 lines (53 loc) · 2.29 KB

version-framework

usages

Create matrix for the supported versions and frameworks

Inputs

Name Description Required Default
versions-file The YAML file with the versions. Being VERSION the key for the list true
frameworks-file The YAML file with the frameworks. Being FRAMEWORK the key for the list true
excluded-file The YAML file with the excluded tuples. Being exclude the key for the list of tuples (VERSION, FRAMEWORK) false

Outputs

Name Description
matrix Processed matrix with the required tuples of version and framework

Usage

on:
  push:

permissions:
  contents: read

jobs:
  create-test-matrix:
    runs-on: ubuntu-latest
    outputs:
      matrix: ${{ steps.generate.outputs.matrix }}
    steps:
      - uses: actions/checkout@v4
      - id: generate
        uses: elastic/oblt-actions/version-framework@v1
        with:
          versions-file: .ci/.ruby.yml
          frameworks-file: .ci/.main_framework.yml
          excluded-file: .ci/.exclude.yml

  test:
    needs:
      - create-test-matrix
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      max-parallel: 20
      matrix: ${{ fromJSON(needs.create-test-matrix.outputs.matrix) }}
    steps:
      - uses: actions/checkout@v4
      [..]