-
Notifications
You must be signed in to change notification settings - Fork 7
feat: Add Github Actions and Update Dependency Versions #2
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
Conversation
|
@klewis-sfdc I actually don't think we want to manage the plugin github actions ourselves. I would recommend a PR adding this instead to the Leif repo, so this can be added to the list of centrally managed repos that the CLI team manages: https://github.com/salesforcecli/leif/blob/main/weekly-leif.yml |
|
Thanks for reviewing the PR @randi274. It looks to me like leif used to sync github actions, but no longer does: https://github.com/salesforcecli/leif/pull/53/files |
d2de75c to
db1f679
Compare
e95e5a6 to
1af8866
Compare
| expect(ctx.stderr).to.include(messages.getMessage('warningMessage')); | ||
| } | ||
| ); | ||
| .command(['force:apex:test:run', '--tests', 'MyApexClass.testInsertTrigger', '--outputdir', outDir, '-r', 'human']) |
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.
Replacing 'my/path/to/dir' with outDir here is the change that was made to get the Windows unit tests passing. This is changed in 3 places. The rest of the changes in this file are prettier formatting changes.
| } from './testData'; | ||
| import { tmpdir } from 'os'; | ||
|
|
||
| const outDir = tmpdir(); |
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.
Importing tmpdir and using it as the --outputdir value in the three tests below that were using 'my/path/to/dir' got the Windows unit tests passing on the GHA build.
| "name": "Attach to Remote", | ||
| "address": "127.0.0.1", | ||
| "port": 9229, | ||
| "skipFiles": ["<node_internals>/**"] |
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.
I don't know enough about this file's config. Is there a reason you removed skipFiles?
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.
I must have added skip files while copying from elsewhere during dev. In the launch.json in the old monorepo, this configuration did not have the skipFiles property present: https://github.com/forcedotcom/salesforcedx-apex/blob/be31310f9ad92e8a13e876ad98efbab65b68463f/.vscode/launch.json#L10
|
Could you please do a code search locally for |
|
You've got some failing actions because the |
package.json
Outdated
| "@salesforce/command": "^5.1.0", | ||
| "@salesforce/core": "^3.23.3", | ||
| "chalk": "^4.1.0", | ||
| "tslib": "^1" |
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.
Update to tslib ^2 please
chg eslint rules to warn to commit
|
I did some QA on this branch today:
|
|
I bumped the version of @salesforce/core in the apex-node library so that it uses the same version as this library. I then updated this library to use the new version of apex-node, which is 1.6. This PR now builds successfully after a @iowillhoit Let me know if you see anything else that needs to be done before merging this PR and completing the handoff. Thanks for all of your help with this! |
iowillhoit
left a comment
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.
Thanks Kenneth! I ran some QA too and things are looking great. Approving the PR, merge when you are are ready 🎉
What does this PR do?
Adds Github Actions workflows to this repo, which were done using CircleCI when this project lived at forcedotcom/salesforcedx-apex.
What issues does this PR fix or reference?
Implements CI using Github Actions. Directory initially copied from salesforcecli/plugin-template.
This PR also updates the versions of @salesforce/core and @salesforce/apex-node used by the plugin.
@W-11309523@