Skip to content

Commit baa2ac5

Browse files
committed
Download artifact for given project
1 parent 6883877 commit baa2ac5

File tree

8 files changed

+169
-85
lines changed

8 files changed

+169
-85
lines changed

__tests__/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ArtifactClient, UploadArtifactResponse } from '@actions/artifact'
1+
import type { ArtifactClient } from '@actions/artifact'
22
import core from '@actions/core'
33
import github from '@actions/github'
44
import { jest } from '@jest/globals'
@@ -86,7 +86,7 @@ describe('code-pushup action', () => {
8686
artifact = {
8787
uploadArtifact: jest
8888
.fn<ArtifactClient['uploadArtifact']>()
89-
.mockResolvedValue({ id: 123 } as UploadArtifactResponse)
89+
.mockResolvedValue({ id: 123, size: 12345 })
9090
} as Partial<ArtifactClient> as ArtifactClient
9191

9292
await rm(workDir, { recursive: true, force: true })

badges/coverage.svg

Lines changed: 1 addition & 1 deletion
Loading

dist/index.js

Lines changed: 19 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)