From f1c2f56b3e09bf998c99fe9c47b0e3eaf4f9e1de Mon Sep 17 00:00:00 2001 From: Fabio Niephaus Date: Thu, 3 Nov 2022 17:16:53 +0100 Subject: [PATCH] Move `cache.ts` to `features/` directory. --- __tests__/cache.test.ts | 2 +- src/cleanup.ts | 2 +- src/{ => features}/cache.ts | 0 src/main.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/{ => features}/cache.ts (100%) diff --git a/__tests__/cache.test.ts b/__tests__/cache.test.ts index 074bdea..e59a546 100644 --- a/__tests__/cache.test.ts +++ b/__tests__/cache.test.ts @@ -27,7 +27,7 @@ import {mkdtempSync} from 'fs' import {tmpdir} from 'os' import {join} from 'path' -import {restore, save} from '../src/cache' +import {restore, save} from '../src/features/cache' import * as fs from 'fs' import * as os from 'os' import * as core from '@actions/core' diff --git a/src/cleanup.ts b/src/cleanup.ts index 9dd8834..c94ba38 100644 --- a/src/cleanup.ts +++ b/src/cleanup.ts @@ -26,7 +26,7 @@ import * as core from '@actions/core' import * as constants from './constants' -import {save} from './cache' +import {save} from './features/cache' import {generateReports} from './features/reports' /** diff --git a/src/cache.ts b/src/features/cache.ts similarity index 100% rename from src/cache.ts rename to src/features/cache.ts diff --git a/src/main.ts b/src/main.ts index dea016a..d47a6b8 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,7 @@ import * as core from '@actions/core' import * as graalvm from './graalvm' import {isFeatureAvailable as isCacheAvailable} from '@actions/cache' import {join} from 'path' -import {restore} from './cache' +import {restore} from './features/cache' import {setUpDependencies} from './dependencies' import {setUpGUComponents} from './gu' import {setUpMandrel} from './mandrel'