setup-nextflow/test/functions.ts

32 lines
1.3 KiB
TypeScript
Raw Normal View History

import * as github from "@actions/github"
import { GitHub } from "@actions/github/lib/utils"
import anyTest, { TestFn } from "ava" // eslint-disable-line import/no-unresolved
import * as functions from "../src/functions"
import { getReleaseTag, getToken } from "./utils"
2023-09-26 22:25:10 +00:00
import { NextflowRelease } from "../src/NextflowRelease"
2022-11-14 03:22:12 +00:00
2023-09-26 22:25:10 +00:00
// A mock set of Nextflow releases
const release23091_edge: NextflowRelease = {
versionNumber: "v23.09.1-edge",
isEdge: true,
binaryURL: "https://github.com/nextflow-io/nextflow/releases/download/v23.09.1-edge/nextflow",
allBinaryURL: "https://github.com/nextflow-io/nextflow/releases/download/v23.09.1-edge/nextflow-23.09.1-edge-all"
}
const release23043: NextflowRelease = {
versionNumber: "v23.04.3",
isEdge: false,
binaryURL: "https://github.com/nextflow-io/nextflow/releases/download/v23.04.3/nextflow",
allBinaryURL: "https://github.com/nextflow-io/nextflow/releases/download/v23.04.3/nextflow-23.04.3-all"
}
const release23030: NextflowRelease = {
versionNumber: "v23.03.0-edge",
isEdge: true,
binaryURL: "https://github.com/nextflow-io/nextflow/releases/download/v23.03.0-edge/nextflow",
allBinaryURL: "https://github.com/nextflow-io/nextflow/releases/download/v23.03.0-edge/nextflow-23.03.0-edge-all"
}
2023-09-26 22:25:10 +00:00
test("Latest-everything install with newer edge release", t =>)
test.todo("install_nextflow")