Something went wrong. Try again.
A collection of +180 reusable WebAssembly modules for building composable CI/CD pipelines with FluentCI fluentci.io/modules
Something went wrong. Try again.
1234567891011121314151617181920212223-- Generated by Gleam CI helpers.module CI.Component (setup) where
import Preludeimport CI.Contract as Contractimport Data.Either (either)import Data.Maybe (Maybe)import Effect (Effect)import Effect.Exception (throw)import CI.Setup.PHP as Native
-- | Install and verify PHP and optional versioned CI tools, then publish their environment.-- | @param version PHP major/minor prefix or exact upstream release, including prereleases; latest/stable resolves the latest available release. Versions are discovered dynamically by the PHP backend. BSD is limited to native repository packages. Default: "latest".-- | @param installDir Absolute per-user prefix for the PHP manager and isolated tool environments; native BSD packages require this to be omitted.-- | @param packageName Native package or port selector overriding the default repository package name.-- | @param sudo Use noninteractive sudo for native package or system installation; defaults to false.-- | @param tools Comma-separated PHP tools, optionally name:version, such as composer:2,phpunit:11,phpstan. Blank or none skips module tool installation. Supports documented aliases and vendor/package:version with a matching executable name. Default: "composer".-- | @param miseVersion mise release used to install PHP on Linux/macOS; ignored for native BSD packages. Default: "latest".setup :: { version :: Maybe String, installDir :: Maybe String, packageName :: Maybe String, sudo :: Maybe Boolean, tools :: Maybe String, miseVersion :: Maybe String } -> Effect Contract.SetupResultsetup args = do config <- either throw pure (Native.decodeConfig (Contract.input (Contract.encodeInput args))) Contract.setupResult <$> Native.setupWith config