Go get tested!
Go to file
2024-09-16 10:19:39 +02:00
.github Fix test-action.yml 2024-09-16 10:19:39 +02:00
app Rectify the documentation for --newest and --oldest 2024-09-06 11:44:44 +02:00
setup-get-tested Moved get-tested setup to own workflow (#47) 2024-09-03 16:30:59 +02:00
src/GetTested Enable the caller to select the newest, oldest-supported GHC (#53) 2024-09-03 16:16:59 +02:00
test Enable the caller to select the newest, oldest-supported GHC (#53) 2024-09-03 16:16:59 +02:00
.gitignore let's gooo 2022-11-18 17:37:28 +01:00
.hlint.yaml let's gooo 2022-11-18 17:37:28 +01:00
action.yml Hotfix for the setup action (#56) 2024-09-12 23:42:54 +02:00
cabal.project Use semaphores and multi-repl by default 2024-09-05 15:06:31 +02:00
cabal.release.project Reshape the cabal project files 2024-07-20 23:21:47 +02:00
cabal.static.project Reshape the cabal project files 2024-07-20 23:21:47 +02:00
CHANGELOG.md Prepare 0.1.8.1 (#60) 2024-09-16 09:50:58 +02:00
fourmolu.yaml let's gooo 2022-11-18 17:37:28 +01:00
get-tested.cabal Prepare 0.1.8.1 (#60) 2024-09-16 09:50:58 +02:00
LICENSE let's gooo 2022-11-18 17:37:28 +01:00
Makefile Enable the caller to select the newest, oldest-supported GHC (#53) 2024-09-03 16:16:59 +02:00
README.md Update version 2024-09-06 12:34:27 +02:00
showcase.png Improve README 2022-11-19 14:33:05 +01:00

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

The inputs of the action (under the with: stanza) are the following:

  • cabal-file:
    The path to your cabal file, e.g. somefolder/myproject.cabal.
    Required: true

  • version:
    The version of the get-tested tool that is used.
    Required: false
    Default: The latest release

  • windows:
    (deprecated) Enable Windows runner, latest version.
    Required: false
    Default: false

  • windows-version:
    Enable Windows runner. If both windows and windows-version inputs are set, the explicit version will take priority.
    Required: false
    Default: Not set

  • macos:
    (deprecated) Enable macOS runner, latest version.
    Required: false
    Default: false

  • macos-version:
    Enable macOS runner. If both macos and macos-version inputs are set, the explicit version will take priority.
    Required: false
    Default: Not set

  • ubuntu:
    (deprecated) Enable Ubuntu runner, latest version.
    Required: false
    Default: false

  • ubuntu-version:
    Enable Ubuntu runner. If both ubuntu and ubuntu-version inputs are set, the explicit version will take priority.
    Required: false
    Default: Not set

  • newest:
    Enable only the newest GHC version found in the cabal file
    Required: false
    Default: false

  • oldest:
    Enable only the oldest GHC version found in the cabal file
    Required: false
    Default: false

See below for an example:

jobs:
  generate-matrix:
    name: "Generate matrix from cabal"
    outputs:
      matrix: ${{ steps.set-matrix.outputs.matrix }}
    runs-on: ubuntu-latest
    steps:
      - name: Extract the tested GHC versions
        id: set-matrix
        uses: kleidukos/get-tested@v0.1.7.1
        with:
          cabal-file: get-tested.cabal
          ubuntu-version: "latest"
          macos-version: "latest"
          version: 0.1.7.1
  tests:
    name: ${{ matrix.ghc }} on ${{ matrix.os }}
    needs: generate-matrix
    runs-on: ${{ matrix.os }}
    strategy:
      matrix: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}