-
Notifications
You must be signed in to change notification settings - Fork 139
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
Automate Cocoapods lib lint #2153
Conversation
b9a13af
to
bc32bb7
Compare
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.
LGTM
azure_pipelines/automation.yml
Outdated
inputs: | ||
targetType: 'inline' | ||
script: | | ||
git checkout -- MSAL.podspec |
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.
nit: do we need to specify "-f" to force in any case the substitution of the file?
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.
Alternatively, you can create a new folder and checkout in there, run lint and then delete folder when done
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.
Thank you both. I have added the -f
👍
|
||
steps: | ||
|
||
- checkout: self |
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.
Are you checking out the repository in the pipeline again? Don't we already do checkout at line 40?
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.
If I remove the checkout part (or specify checkout: none
) the job fails. It seems it's not in the directory anymore.
I think it's because these two jobs (the UI tests and the new pod lib lint) are executed in parallel.
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.
Ah I see it is a different job, nvm
e62422f
to
e53a3e2
Compare
…already done in the previous job.
…after removing it it didn't work properly.
1e4cbc0
to
7108d82
Compare
Proposed changes
Run
pod lib lint
in the PR validation script.Explanation of the script:
"$SRCROOT/MSAL"
in the podspec and replaces it with__dir__
. This is done according to the wiki.pod lib lint
.MSAL.podspec
file are discarded. I'm not sure if this step is necessary in Azure Pipelines, but I thought it was better to have it.Type of change
Risk