From 00677a42550181d00d01af8bd7ab01bad8a81b89 Mon Sep 17 00:00:00 2001 From: mashehu Date: Tue, 9 Jan 2024 13:28:07 +0100 Subject: [PATCH] make linter happy --- src/functions.ts | 2 +- src/main.ts | 4 ++-- src/{NextflowRelease.ts => nextflow-release.ts} | 0 src/{OctokitWrapper.ts => octokit-wrapper.ts} | 2 +- test/functions.ts | 4 +--- test/releasedata.ts | 4 ++-- 6 files changed, 7 insertions(+), 9 deletions(-) rename src/{NextflowRelease.ts => nextflow-release.ts} (100%) rename src/{OctokitWrapper.ts => octokit-wrapper.ts} (95%) diff --git a/src/functions.ts b/src/functions.ts index 09f3d83..d0e4c7e 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -4,7 +4,7 @@ import retry from "async-retry" import * as fs from "fs" import semver from "semver" -import { NextflowRelease } from "./NextflowRelease" +import { NextflowRelease } from "./nextflow-release" function tag_filter(version: string): (r: NextflowRelease) => Boolean { // Setup tag-based filtering diff --git a/src/main.ts b/src/main.ts index 428ebd0..776970e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,8 +9,8 @@ import { get_nextflow_release, install_nextflow } from "./functions" -import { NextflowRelease } from "./NextflowRelease" -import { pull_releases, setup_octokit } from "./OctokitWrapper" +import { NextflowRelease } from "./nextflow-release" +import { pull_releases, setup_octokit } from "./octokit-wrapper" async function run(): Promise { // CAPSULE_LOG leads to a bunch of boilerplate being output to the logs: turn diff --git a/src/NextflowRelease.ts b/src/nextflow-release.ts similarity index 100% rename from src/NextflowRelease.ts rename to src/nextflow-release.ts diff --git a/src/OctokitWrapper.ts b/src/octokit-wrapper.ts similarity index 95% rename from src/OctokitWrapper.ts rename to src/octokit-wrapper.ts index 8bdb641..77345f7 100644 --- a/src/OctokitWrapper.ts +++ b/src/octokit-wrapper.ts @@ -2,7 +2,7 @@ import * as core from "@actions/core" import * as github from "@actions/github" import { GitHub } from "@actions/github/lib/utils" -import { nextflow_release, NextflowRelease } from "./NextflowRelease" +import { nextflow_release, NextflowRelease } from "./nextflow-release" const NEXTFLOW_REPO = { owner: "nextflow-io", repo: "nextflow" } diff --git a/test/functions.ts b/test/functions.ts index c10e39e..eff7315 100644 --- a/test/functions.ts +++ b/test/functions.ts @@ -1,7 +1,7 @@ import test from "ava" // eslint-disable-line import/no-unresolved import * as functions from "../src/functions" -import { NextflowRelease } from "../src/NextflowRelease" +import { NextflowRelease } from "../src/nextflow-release" // The Nextflow releases we are going to use for testing follow a regular // pattern: create a mock function to bootstrap some test data without repeating @@ -109,5 +109,3 @@ test( "v23.04.3", edge_is_newer ) - -test.todo("install_nextflow") diff --git a/test/releasedata.ts b/test/releasedata.ts index 3796054..6428294 100644 --- a/test/releasedata.ts +++ b/test/releasedata.ts @@ -2,8 +2,8 @@ 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 { nextflow_bin_url } from "../src/NextflowRelease" -import { all_nf_release_data } from "../src/OctokitWrapper" +import { nextflow_bin_url } from "../src/nextflow-release" +import { all_nf_release_data } from "../src/octokit-wrapper" import { getToken } from "./utils" const test = anyTest as TestFn<{