diff --git a/packages/attest/src/store.ts b/packages/attest/src/store.ts index 15aa8fda..081ce4a0 100644 --- a/packages/attest/src/store.ts +++ b/packages/attest/src/store.ts @@ -31,8 +31,8 @@ export const writeAttestation = async ( headers: options.headers, bundle: attestation as { mediaType?: string - verificationMaterial?: { [key: string]: unknown } - dsseEnvelope?: { [key: string]: unknown } + verificationMaterial?: {[key: string]: unknown} + dsseEnvelope?: {[key: string]: unknown} } }) diff --git a/packages/cache/__tests__/saveCache.test.ts b/packages/cache/__tests__/saveCache.test.ts index 5a2acde2..99480f3e 100644 --- a/packages/cache/__tests__/saveCache.test.ts +++ b/packages/cache/__tests__/saveCache.test.ts @@ -244,7 +244,9 @@ test('save with server error should fail', async () => { // Mock the FinalizeCacheEntryUpload to succeed (since the error should happen in saveCache) jest .spyOn(CacheServiceClientJSON.prototype, 'FinalizeCacheEntryUpload') - .mockReturnValue(Promise.resolve({ok: true, entryId: '4', message: 'Success'})) + .mockReturnValue( + Promise.resolve({ok: true, entryId: '4', message: 'Success'}) + ) const createTarMock = jest.spyOn(tar, 'createTar') diff --git a/packages/core/src/platform.ts b/packages/core/src/platform.ts index 55fdee64..406736ec 100644 --- a/packages/core/src/platform.ts +++ b/packages/core/src/platform.ts @@ -76,8 +76,8 @@ export async function getDetails(): Promise<{ ...(await (isWindows ? getWindowsInfo() : isMacOS - ? getMacOsInfo() - : getLinuxInfo())), + ? getMacOsInfo() + : getLinuxInfo())), platform, arch, isWindows, diff --git a/packages/glob/src/internal-hash-files.ts b/packages/glob/src/internal-hash-files.ts index d968db5e..463d5ea0 100644 --- a/packages/glob/src/internal-hash-files.ts +++ b/packages/glob/src/internal-hash-files.ts @@ -15,7 +15,7 @@ export async function hashFiles( let hasMatch = false const githubWorkspace = currentWorkspace ? currentWorkspace - : process.env['GITHUB_WORKSPACE'] ?? process.cwd() + : (process.env['GITHUB_WORKSPACE'] ?? process.cwd()) const result = crypto.createHash('sha256') let count = 0 for await (const file of globber.globGenerator()) { diff --git a/packages/io/__tests__/io.test.ts b/packages/io/__tests__/io.test.ts index 87f7c7b0..0fcab0d5 100644 --- a/packages/io/__tests__/io.test.ts +++ b/packages/io/__tests__/io.test.ts @@ -646,7 +646,9 @@ describe('rmRF', () => { // Node.js 24 changed behavior - fs.readlink no longer includes trailing backslash // Accept both formats for compatibility const linkPath = await fs.readlink(symlinkLevel2Directory) - expect(linkPath.replace(/\\+$/, '')).toBe(symlinkDirectory.replace(/\\+$/, '')) + expect(linkPath.replace(/\\+$/, '')).toBe( + symlinkDirectory.replace(/\\+$/, '') + ) } else { expect(await fs.readlink(symlinkLevel2Directory)).toBe(symlinkDirectory) } @@ -1202,9 +1204,8 @@ describe('which', () => { const originalPath = process.env['PATH'] try { // modify PATH - process.env[ - 'PATH' - ] = `${process.env['PATH']}${path.delimiter}${testPath}` + process.env['PATH'] = + `${process.env['PATH']}${path.delimiter}${testPath}` // find each file for (const fileName of Object.keys(files)) { @@ -1275,9 +1276,8 @@ describe('which', () => { await fs.writeFile(notExpectedFilePath, '') const originalPath = process.env['PATH'] try { - process.env[ - 'PATH' - ] = `${process.env['PATH']}${path.delimiter}${testPath}` + process.env['PATH'] = + `${process.env['PATH']}${path.delimiter}${testPath}` expect(await io.which(fileName)).toBe(expectedFilePath) } finally { process.env['PATH'] = originalPath @@ -1439,9 +1439,8 @@ describe('findInPath', () => { try { // update the PATH for (const testPath of testPaths) { - process.env[ - 'PATH' - ] = `${process.env['PATH']}${path.delimiter}${testPath}` + process.env['PATH'] = + `${process.env['PATH']}${path.delimiter}${testPath}` } // exact file names expect(await io.findInPath(fileName)).toEqual(filePaths)