mirror of
https://github.com/gradle/actions
synced 2024-11-27 20:02:19 +00:00
Rename 'input-params' to 'configuration'
This commit is contained in:
parent
9d0de74673
commit
7e9e469530
17 changed files with 16 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import {BuildScanConfig} from './input-params'
|
import {BuildScanConfig} from './configuration'
|
||||||
|
|
||||||
export function setup(config: BuildScanConfig): void {
|
export function setup(config: BuildScanConfig): void {
|
||||||
maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle')
|
maybeExportVariable('DEVELOCITY_INJECTION_INIT_SCRIPT_NAME', 'gradle-actions.inject-develocity.init.gradle')
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import * as github from '@actions/github'
|
import * as github from '@actions/github'
|
||||||
|
|
||||||
import {CacheConfig, getJobMatrix} from '../input-params'
|
import {CacheConfig, getJobMatrix} from '../configuration'
|
||||||
import {hashStrings} from './cache-utils'
|
import {hashStrings} from './cache-utils'
|
||||||
|
|
||||||
const CACHE_PROTOCOL_VERSION = 'v1'
|
const CACHE_PROTOCOL_VERSION = 'v1'
|
||||||
|
|
|
@ -3,7 +3,7 @@ import {CacheListener} from './cache-reporting'
|
||||||
import {GradleUserHomeCache} from './gradle-user-home-cache'
|
import {GradleUserHomeCache} from './gradle-user-home-cache'
|
||||||
import {CacheCleaner} from './cache-cleaner'
|
import {CacheCleaner} from './cache-cleaner'
|
||||||
import {DaemonController} from '../daemon-controller'
|
import {DaemonController} from '../daemon-controller'
|
||||||
import {CacheConfig} from '../input-params'
|
import {CacheConfig} from '../configuration'
|
||||||
|
|
||||||
const CACHE_RESTORED_VAR = 'GRADLE_BUILD_ACTION_CACHE_RESTORED'
|
const CACHE_RESTORED_VAR = 'GRADLE_BUILD_ACTION_CACHE_RESTORED'
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {CacheEntryListener, CacheListener} from './cache-reporting'
|
||||||
import {cacheDebug, hashFileNames, isCacheDebuggingEnabled, restoreCache, saveCache, tryDelete} from './cache-utils'
|
import {cacheDebug, hashFileNames, isCacheDebuggingEnabled, restoreCache, saveCache, tryDelete} from './cache-utils'
|
||||||
|
|
||||||
import {BuildResult, loadBuildResults} from '../build-results'
|
import {BuildResult, loadBuildResults} from '../build-results'
|
||||||
import {CacheConfig} from '../input-params'
|
import {CacheConfig} from '../configuration'
|
||||||
import {getCacheKeyBase} from './cache-key'
|
import {getCacheKeyBase} from './cache-key'
|
||||||
|
|
||||||
const SKIP_RESTORE_VAR = 'GRADLE_BUILD_ACTION_SKIP_RESTORE'
|
const SKIP_RESTORE_VAR = 'GRADLE_BUILD_ACTION_SKIP_RESTORE'
|
||||||
|
|
|
@ -8,7 +8,7 @@ import {generateCacheKey} from './cache-key'
|
||||||
import {CacheListener} from './cache-reporting'
|
import {CacheListener} from './cache-reporting'
|
||||||
import {saveCache, restoreCache, cacheDebug, isCacheDebuggingEnabled, tryDelete} from './cache-utils'
|
import {saveCache, restoreCache, cacheDebug, isCacheDebuggingEnabled, tryDelete} from './cache-utils'
|
||||||
import {GradleHomeEntryExtractor, ConfigurationCacheEntryExtractor} from './gradle-home-extry-extractor'
|
import {GradleHomeEntryExtractor, ConfigurationCacheEntryExtractor} from './gradle-home-extry-extractor'
|
||||||
import {CacheConfig} from '../input-params'
|
import {CacheConfig} from '../configuration'
|
||||||
|
|
||||||
const RESTORED_CACHE_KEY_KEY = 'restored-cache-key'
|
const RESTORED_CACHE_KEY_KEY = 'restored-cache-key'
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ import * as path from 'path'
|
||||||
import fs from 'fs'
|
import fs from 'fs'
|
||||||
|
|
||||||
import {PostActionJobFailure} from './errors'
|
import {PostActionJobFailure} from './errors'
|
||||||
import {DependencyGraphConfig, DependencyGraphOption, getGithubToken, getWorkspaceDirectory} from './input-params'
|
import {DependencyGraphConfig, DependencyGraphOption, getGithubToken, getWorkspaceDirectory} from './configuration'
|
||||||
|
|
||||||
const DEPENDENCY_GRAPH_PREFIX = 'dependency-graph_'
|
const DEPENDENCY_GRAPH_PREFIX = 'dependency-graph_'
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {
|
||||||
DependencyGraphConfig,
|
DependencyGraphConfig,
|
||||||
DependencyGraphOption,
|
DependencyGraphOption,
|
||||||
GradleExecutionConfig
|
GradleExecutionConfig
|
||||||
} from '../input-params'
|
} from '../configuration'
|
||||||
import {saveDeprecationState} from '../deprecation-collector'
|
import {saveDeprecationState} from '../deprecation-collector'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import * as setupGradle from '../setup-gradle'
|
import * as setupGradle from '../setup-gradle'
|
||||||
|
|
||||||
import {CacheConfig, SummaryConfig} from '../input-params'
|
import {CacheConfig, SummaryConfig} from '../configuration'
|
||||||
import {PostActionJobFailure} from '../errors'
|
import {PostActionJobFailure} from '../errors'
|
||||||
|
|
||||||
// Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
|
// Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
|
||||||
|
|
|
@ -8,7 +8,7 @@ import * as toolCache from '@actions/tool-cache'
|
||||||
|
|
||||||
import * as gradlew from './gradlew'
|
import * as gradlew from './gradlew'
|
||||||
import {handleCacheFailure} from '../caching/cache-utils'
|
import {handleCacheFailure} from '../caching/cache-utils'
|
||||||
import {CacheConfig} from '../input-params'
|
import {CacheConfig} from '../configuration'
|
||||||
|
|
||||||
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions'
|
const gradleVersionsBaseUrl = 'https://services.gradle.org/versions'
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import * as github from '@actions/github'
|
||||||
import {RequestError} from '@octokit/request-error'
|
import {RequestError} from '@octokit/request-error'
|
||||||
|
|
||||||
import {BuildResult} from './build-results'
|
import {BuildResult} from './build-results'
|
||||||
import {SummaryConfig, getGithubToken} from './input-params'
|
import {SummaryConfig, getGithubToken} from './configuration'
|
||||||
import {Deprecation, getDeprecations} from './deprecation-collector'
|
import {Deprecation, getDeprecations} from './deprecation-collector'
|
||||||
|
|
||||||
export async function generateJobSummary(
|
export async function generateJobSummary(
|
||||||
|
|
|
@ -9,7 +9,7 @@ import * as buildScan from './build-scan'
|
||||||
import {loadBuildResults, markBuildResultsProcessed} from './build-results'
|
import {loadBuildResults, markBuildResultsProcessed} from './build-results'
|
||||||
import {CacheListener, generateCachingReport} from './caching/cache-reporting'
|
import {CacheListener, generateCachingReport} from './caching/cache-reporting'
|
||||||
import {DaemonController} from './daemon-controller'
|
import {DaemonController} from './daemon-controller'
|
||||||
import {BuildScanConfig, CacheConfig, SummaryConfig, getWorkspaceDirectory} from './input-params'
|
import {BuildScanConfig, CacheConfig, SummaryConfig, getWorkspaceDirectory} from './configuration'
|
||||||
|
|
||||||
const GRADLE_SETUP_VAR = 'GRADLE_BUILD_ACTION_SETUP_COMPLETED'
|
const GRADLE_SETUP_VAR = 'GRADLE_BUILD_ACTION_SETUP_COMPLETED'
|
||||||
const USER_HOME = 'USER_HOME'
|
const USER_HOME = 'USER_HOME'
|
||||||
|
|
|
@ -3,7 +3,7 @@ import * as core from '@actions/core'
|
||||||
import * as setupGradle from '../setup-gradle'
|
import * as setupGradle from '../setup-gradle'
|
||||||
import * as gradle from '../execution/gradle'
|
import * as gradle from '../execution/gradle'
|
||||||
import * as dependencyGraph from '../dependency-graph'
|
import * as dependencyGraph from '../dependency-graph'
|
||||||
import {BuildScanConfig, CacheConfig, DependencyGraphConfig, GradleExecutionConfig} from '../input-params'
|
import {BuildScanConfig, CacheConfig, DependencyGraphConfig, GradleExecutionConfig} from '../configuration'
|
||||||
import {saveDeprecationState} from '../deprecation-collector'
|
import {saveDeprecationState} from '../deprecation-collector'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as core from '@actions/core'
|
||||||
import * as setupGradle from '../setup-gradle'
|
import * as setupGradle from '../setup-gradle'
|
||||||
import * as dependencyGraph from '../dependency-graph'
|
import * as dependencyGraph from '../dependency-graph'
|
||||||
|
|
||||||
import {CacheConfig, DependencyGraphConfig, SummaryConfig} from '../input-params'
|
import {CacheConfig, DependencyGraphConfig, SummaryConfig} from '../configuration'
|
||||||
import {PostActionJobFailure} from '../errors'
|
import {PostActionJobFailure} from '../errors'
|
||||||
import {emitDeprecationWarnings, restoreDeprecationState} from '../deprecation-collector'
|
import {emitDeprecationWarnings, restoreDeprecationState} from '../deprecation-collector'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import {GradleUserHomeCache} from "../../src/caching/gradle-user-home-cache"
|
import {GradleUserHomeCache} from "../../src/caching/gradle-user-home-cache"
|
||||||
import {CacheConfig} from "../../src/input-params"
|
import {CacheConfig} from "../../src/configuration"
|
||||||
|
|
||||||
const testTmp = 'test/jest/tmp'
|
const testTmp = 'test/jest/tmp'
|
||||||
fs.rmSync(testTmp, {recursive: true, force: true})
|
fs.rmSync(testTmp, {recursive: true, force: true})
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import * as inputParams from '../../src/input-params'
|
import * as inputParams from '../../src/configuration'
|
||||||
|
|
||||||
describe('input params', () => {
|
describe('input params', () => {
|
||||||
describe('parses numeric input', () => {
|
describe('parses numeric input', () => {
|
|
@ -1,4 +1,4 @@
|
||||||
import { DependencyGraphConfig } from "../../src/input-params"
|
import { DependencyGraphConfig } from "../../src/configuration"
|
||||||
|
|
||||||
describe('dependency-graph', () => {
|
describe('dependency-graph', () => {
|
||||||
describe('constructs job correlator', () => {
|
describe('constructs job correlator', () => {
|
||||||
|
|
Loading…
Reference in a new issue