Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
list

GitHub Action

Test supported GHC versions

v0.1.6.0

Test supported GHC versions

list

Test supported GHC versions

Generate a test matrix from your cabal file's `tested-with` stanza

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Test supported GHC versions

uses: Kleidukos/[email protected]

Learn more about this action in Kleidukos/get-tested

Choose a version

get-tested

A CLI tool that retrieves the tested-with stanza of a cabal file and formats it in such a way that GitHub Actions can use it.

Usage

Put this in your GitHub Action file

jobs:
  generateMatrix:
    name: "Generate matrix from cabal"
    runs-on: ubuntu-latest
    steps:
      - name: Extract the tested GHC versions
        uses: kleidukos/[email protected]
        with:
          cabal-file: "path/to/your.cabal"
          ubuntu: true
  tests:
    name: ${{ matrix.ghc }} on ${{ matrix.os }}
    needs: generateMatrix
    runs-on: ${{ matrix.os }}
    strategy:
      matrix: ${{ fromJSON(needs.generateMatrix.outputs.matrix) }}