-
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
ADMU CI Migration #102
Merged
Merged
ADMU CI Migration #102
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Create new test files * test * fix error * fix test * test * test * fix test * test * test * test * matrix add * test * test * test * test * test fix * test * cleanup * test
…/jumpcloud-ADMU into SA-3609_ADMU_GHA_Migrate_CI
jworkmanjc
temporarily deployed
to
PublishToPSGallery
October 25, 2023 22:10 — with
GitHub Actions
Inactive
kmaranionjc
reviewed
Oct 26, 2023
kmaranionjc
reviewed
Oct 26, 2023
kmaranionjc
reviewed
Oct 26, 2023
kmaranionjc
reviewed
Oct 26, 2023
jumpcloud-ADMU/Powershell/Tests/SetLastLoggedOnUserTest.Tests.ps1
Outdated
Show resolved
Hide resolved
kmaranionjc
reviewed
Oct 26, 2023
jumpcloud-ADMU/Powershell/Tests/SetLastLoggedOnUserTest.Tests.ps1
Outdated
Show resolved
Hide resolved
kmaranionjc
reviewed
Oct 26, 2023
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.
Dropped couple of comments. Biggest thing is should we do delete jc user on the new test files
kmaranionjc
previously approved these changes
Oct 26, 2023
kmaranionjc
approved these changes
Dec 18, 2023
gweinjc
approved these changes
Dec 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issues
What does this solve?
This is a non-impactful patch release to update the build/test/release workflow in GitHub Actions. A number of items in the repository directory have been cleaned up, I've removed files that were saved in git history but not necessary to be stored in the repository.
Files Removed:
Modified CI Steps:
The build steps have generally been consolidated into a single
build.ps1
file. It's easy to run locally, and the idea is that you'd runbuild.ps1
once before you commit changes to see if there's anything additional worth committing to git history (generally this would be moduleChangeLog.md + the module psd1). Regardless this runs on CI and in the Release CI workflow. If there was a better way to save artifacts between workflows we could cut that part out of Release CI and only run this once in PR CI. This would be preferred and it is possible but I want to break that into a different card.Changes to Nuspec/Nupkg:
I've cleaned up the file structure in the nuspec/ nupkg files. If you run build.ps1 you'll see the nuspec file generated should only contain docs, help files, Start-Migration and the other required module information. We used to package up a number of unnecessary items in the module which was not best practice. There are other items we should add like a LICENSE, readme file and bundle those into our package. I want to break that out into a different card.
Changes to Tests:
Tests are broken up by several different runners, GHA runners are slower than CircleCI by default so running certain tests in parallel seems to cut down on the total runtime. I'd like to further break out these tests in a future card.
Build Tests should now throw if you haven't run
build.ps1
on a given day before committing changes. I want our changelog + psd1 generation date to be the same as whatever date we release on. It just looks nicer so it's included. Check these tests out and let me know if you want to change anything.Is there anything particularly tricky?
After review we'll change two items to the Release CI to only run that workflow on merge to main branch. We have experience doing this with the PWSH module so that step should work when we next merge.
How should this be tested?
View the two most recent actions logs, the CI and Release CI workflows are both triggered with the last commit.
Screenshots