diff --git a/__tests__/cache.test.ts b/__tests__/cache.test.ts index 9747b3ed..af70c264 100644 --- a/__tests__/cache.test.ts +++ b/__tests__/cache.test.ts @@ -123,7 +123,7 @@ describe('dependency cache', () => { await expect(restore('sbt')).rejects.toThrowError( `No file in ${projectRoot( workspace - )} matched to [**/build.sbt], make sure you have checked out the target repository` + )} matched to [**/*.sbt,**/project/**.scala,**/project/build.properties,**/project/**.scala], make sure you have checked out the target repository` ); }); it('downloads cache', async () => { diff --git a/src/cache.ts b/src/cache.ts index 493bf104..cc38fdc8 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -36,8 +36,7 @@ const supportedPackageManager: PackageManager[] = [ { id: 'sbt', path: [join(os.homedir(), '.ivy2', 'cache'), join(os.homedir(), '.sbt')], - // https://github.com/actions/cache/blob/0638051e9af2c23d10bb70fa9beffcad6cff9ce3/examples.md#scala---sbt - pattern: ['**/build.sbt'] + pattern: ['**/*.sbt', '**/project/**.scala', '**/project/build.properties', '**/project/**.scala'] } ];