Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Jan 9, 2024
1 parent d70a853 commit 00677a4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> {
// CAPSULE_LOG leads to a bunch of boilerplate being output to the logs: turn
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/OctokitWrapper.ts → src/octokit-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down
4 changes: 1 addition & 3 deletions test/functions.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -109,5 +109,3 @@ test(
"v23.04.3",
edge_is_newer
)

test.todo("install_nextflow")
4 changes: 2 additions & 2 deletions test/releasedata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<{
Expand Down

0 comments on commit 00677a4

Please sign in to comment.