mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 01:46:04 +00:00
style: Set bracketSpacing to true
This commit is contained in:
parent
7c79f790e0
commit
981cd4fc2e
6 changed files with 24 additions and 18 deletions
|
@ -15,7 +15,7 @@
|
||||||
"@typescript-eslint/no-unused-vars": "error",
|
"@typescript-eslint/no-unused-vars": "error",
|
||||||
"@typescript-eslint/explicit-member-accessibility": [
|
"@typescript-eslint/explicit-member-accessibility": [
|
||||||
"error",
|
"error",
|
||||||
{"accessibility": "no-public"}
|
{ "accessibility": "no-public" }
|
||||||
],
|
],
|
||||||
"@typescript-eslint/no-require-imports": "error",
|
"@typescript-eslint/no-require-imports": "error",
|
||||||
"@typescript-eslint/array-type": "error",
|
"@typescript-eslint/array-type": "error",
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"@typescript-eslint/consistent-type-assertions": "error",
|
"@typescript-eslint/consistent-type-assertions": "error",
|
||||||
"@typescript-eslint/explicit-function-return-type": [
|
"@typescript-eslint/explicit-function-return-type": [
|
||||||
"error",
|
"error",
|
||||||
{"allowExpressions": true}
|
{ "allowExpressions": true }
|
||||||
],
|
],
|
||||||
"@typescript-eslint/func-call-spacing": ["error", "never"],
|
"@typescript-eslint/func-call-spacing": ["error", "never"],
|
||||||
"@typescript-eslint/no-array-constructor": "error",
|
"@typescript-eslint/no-array-constructor": "error",
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
"semi": false,
|
"semi": false,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "none",
|
"trailingComma": "none",
|
||||||
"bracketSpacing": false,
|
"bracketSpacing": true,
|
||||||
"arrowParens": "avoid"
|
"arrowParens": "avoid"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import * as tc from '@actions/tool-cache'
|
import * as tc from '@actions/tool-cache'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import { GitHub } from '@actions/github/lib/utils'
|
||||||
import retry from 'async-retry'
|
import retry from 'async-retry'
|
||||||
import semver from 'semver'
|
import semver from 'semver'
|
||||||
|
|
||||||
const NEXTFLOW_REPO = {owner: 'nextflow-io', repo: 'nextflow'}
|
const NEXTFLOW_REPO = { owner: 'nextflow-io', repo: 'nextflow' }
|
||||||
|
|
||||||
// HACK Private but I want to test this
|
// HACK Private but I want to test this
|
||||||
export async function all_nf_releases(
|
export async function all_nf_releases(
|
||||||
|
@ -22,7 +22,7 @@ export async function all_nf_releases(
|
||||||
export async function latest_stable_release_data(
|
export async function latest_stable_release_data(
|
||||||
ok: InstanceType<typeof GitHub>
|
ok: InstanceType<typeof GitHub>
|
||||||
): Promise<object> {
|
): Promise<object> {
|
||||||
const {data: stable_release} = await ok.rest.repos.getLatestRelease(
|
const { data: stable_release } = await ok.rest.repos.getLatestRelease(
|
||||||
NEXTFLOW_REPO
|
NEXTFLOW_REPO
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@ import * as core from '@actions/core'
|
||||||
import * as exec from '@actions/exec'
|
import * as exec from '@actions/exec'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import { GitHub } from '@actions/github/lib/utils'
|
||||||
import * as tc from '@actions/tool-cache'
|
import * as tc from '@actions/tool-cache'
|
||||||
import {install_nextflow, nextflow_bin_url, release_data} from './functions'
|
import { install_nextflow, nextflow_bin_url, release_data } from './functions'
|
||||||
|
|
||||||
async function run(): Promise<void> {
|
async function run(): Promise<void> {
|
||||||
// Set environment variables
|
// Set environment variables
|
||||||
|
@ -69,7 +69,7 @@ async function run(): Promise<void> {
|
||||||
nf_path = await tc.cacheDir(nf_install_path, 'nextflow', resolved_version)
|
nf_path = await tc.cacheDir(nf_install_path, 'nextflow', resolved_version)
|
||||||
core.debug(`Added Nextflow to cache: ${nf_path}`)
|
core.debug(`Added Nextflow to cache: ${nf_path}`)
|
||||||
|
|
||||||
fs.rmdirSync(nf_install_path, {recursive: true})
|
fs.rmdirSync(nf_install_path, { recursive: true })
|
||||||
} else {
|
} else {
|
||||||
core.debug(`Using cached version of Nextflow: ${nf_path}`)
|
core.debug(`Using cached version of Nextflow: ${nf_path}`)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as functions from '../src/functions'
|
import * as functions from '../src/functions'
|
||||||
import {getToken} from './utils'
|
import { getToken } from './utils'
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import { GitHub } from '@actions/github/lib/utils'
|
||||||
import anyTest, {TestFn} from 'ava' // eslint-disable-line import/no-unresolved
|
import anyTest, { TestFn } from 'ava' // eslint-disable-line import/no-unresolved
|
||||||
|
|
||||||
const test = anyTest as TestFn<{
|
const test = anyTest as TestFn<{
|
||||||
token: string
|
token: string
|
||||||
|
@ -12,7 +12,10 @@ const test = anyTest as TestFn<{
|
||||||
test.before(t => {
|
test.before(t => {
|
||||||
const first = true
|
const first = true
|
||||||
const current_token = getToken(first)
|
const current_token = getToken(first)
|
||||||
t.context = {token: current_token, octokit: github.getOctokit(current_token)}
|
t.context = {
|
||||||
|
token: current_token,
|
||||||
|
octokit: github.getOctokit(current_token)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
test('all_nf_releases', async t => {
|
test('all_nf_releases', async t => {
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
import {release_data} from '../src/functions'
|
import { release_data } from '../src/functions'
|
||||||
import {getToken} from './utils'
|
import { getToken } from './utils'
|
||||||
import {GitHub} from '@actions/github/lib/utils'
|
import { GitHub } from '@actions/github/lib/utils'
|
||||||
import anyTest, {TestFn} from 'ava' // eslint-disable-line import/no-unresolved
|
import anyTest, { TestFn } from 'ava' // eslint-disable-line import/no-unresolved
|
||||||
|
|
||||||
const test = anyTest as TestFn<{
|
const test = anyTest as TestFn<{
|
||||||
token: string
|
token: string
|
||||||
|
@ -12,7 +12,10 @@ const test = anyTest as TestFn<{
|
||||||
test.before(t => {
|
test.before(t => {
|
||||||
const first = true
|
const first = true
|
||||||
const current_token = getToken(first)
|
const current_token = getToken(first)
|
||||||
t.context = {token: current_token, octokit: github.getOctokit(current_token)}
|
t.context = {
|
||||||
|
token: current_token,
|
||||||
|
octokit: github.getOctokit(current_token)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const macro = test.macro(async (t, version: string, expected: string) => {
|
const macro = test.macro(async (t, version: string, expected: string) => {
|
||||||
|
|
Loading…
Reference in a new issue