-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for @actions/artifact #136
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 30 out of 45 changed files in this pull request and generated no comments.
Files not reviewed (15)
- .env.example: Language not supported
- tests/stubs/artifact/internal/delete/delete-artifact.test.ts: Evaluated as low risk
- tests/commands/run.test.ts: Evaluated as low risk
- tests/stubs/core-stubs.test.ts: Evaluated as low risk
- tests/command.test.ts: Evaluated as low risk
- tests/utils/output.test.ts: Evaluated as low risk
- tests/index.test.ts: Evaluated as low risk
- tests/stubs/summary-stubs.test.ts: Evaluated as low risk
- tests/stubs/env-stubs.test.ts: Evaluated as low risk
- tests/stubs/artifact/internal/upload/upload-artifact.test.ts: Evaluated as low risk
- docs/supported-functionality.md: Evaluated as low risk
- tests/stubs/artifact/internal/client.test.ts: Evaluated as low risk
- fixtures/stream/promises.ts: Evaluated as low risk
- fixtures/fs.ts: Evaluated as low risk
- fixtures/crypto.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)
tests/stubs/artifact/internal/find/list-artifacts.test.ts:12
- [nitpick] The function name 'listArtifactsInternal' is ambiguous. Consider renaming it to 'listEnvArtifacts' to indicate that it lists artifacts from the environment metadata.
describe('list-artifacts', () => {
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
This PR introduces support for stubbing the functionality of the
@actions/artifact
package. This is accomplished via the following:@actions/artifact
package.LOCAL_ACTION_ARTIFACT_PATH
, which can be used to set the local directory where@actions/artifact
will "upload" and "download" artifacts.LOCAL_ACTION_ARTIFACT_PATH
environment variable whenever@actions/artifact
operations are performed.local-action
run (currently no cleanup of those artifacts is performed).Important
Operations on artifacts in external repositories is left implemented as-is. If you specify the
findBy
options as noted here, the corresponding GitHub API will be called.