Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ The action may be customized using the following optional inputs:
| `token` | GitHub token for authorizing GitHub API requests | `${{ github.token }}` |
| `annotations` | Toggles if annotations should be created for relevant Code PushUp issues | `true` |
| `artifacts` | Toggles if artifacts will we uploaded/downloaded | `true` |
| `skipComment` | Toggles if comparison comment is posted to PR | `false` |
| `retention` | Artifact retention period in days | from repository settings |
| `directory` | Directory in which `code-pushup` should run | `process.cwd()` |
| `config` | Path to config file (`--config` option) | see [`@code-pushup/cli` docs](https://github.com/code-pushup/cli/tree/main/packages/cli#configuration) |
Expand Down
3 changes: 2 additions & 1 deletion __tests__/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { ArtifactClient } from '@actions/artifact'
import core from '@actions/core'
import github from '@actions/github'
import { jest } from '@jest/globals'
import type { Report } from '@code-pushup/models'
import { jest } from '@jest/globals'
import type { components } from '@octokit/openapi-types'
import type { RestEndpointMethodTypes } from '@octokit/plugin-rest-endpoint-methods'
import {
Expand Down Expand Up @@ -72,6 +72,7 @@ describe('code-pushup action', () => {
process.env['INPUT_SILENT'] = 'true'
process.env['INPUT_ARTIFACTS'] = 'true'
process.env['INPUT_ANNOTATIONS'] = 'true'
process.env['INPUT_SKIPCOMMENT'] = 'false'

jest.spyOn(github.context, 'repo', 'get').mockReturnValue({
owner: 'dunder-mifflin',
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ inputs:
description: Create file annotations in GitHub
required: true
default: true
skipComment:
description: Skip PR comment
required: true
default: false

outputs:
artifact-id:
Expand Down
3,844 changes: 878 additions & 2,966 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading