2022-11-15 15:57:34 +00:00
|
|
|
import * as github from "@actions/github"
|
|
|
|
import { GitHub } from "@actions/github/lib/utils"
|
|
|
|
import anyTest, { TestFn } from "ava" // eslint-disable-line import/no-unresolved
|
2022-11-13 21:35:45 +00:00
|
|
|
|
2022-11-15 15:57:34 +00:00
|
|
|
import * as functions from "../src/functions"
|
2023-06-28 09:03:05 +00:00
|
|
|
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"
|
|
|
|
}
|
2022-11-13 21:35:45 +00:00
|
|
|
|
2023-09-26 22:25:10 +00:00
|
|
|
test("Latest-everything install with newer edge release", t =>)
|
2022-11-13 21:35:45 +00:00
|
|
|
|
2022-11-15 15:57:34 +00:00
|
|
|
test.todo("install_nextflow")
|