-
Notifications
You must be signed in to change notification settings - Fork 854
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
ci: adopt asdf for internal dev. init WSL test environments #956
Conversation
This doesn't change our existing Ubuntu/macOS tests, only expands them with an I am of the mind we should probably not use For example, we should require all except WSL1 checks pass for the PR to be valid. We have not been using required status checks as the event trigger filters Are people okay with:
|
To other asdf core members: I am merging as there are no negative side-effects I can see and this can easily be reverted. Enabling Required Status Checks as well. These can be disabled via https://github.com/asdf-vm/asdf/settings/branches |
@jthegedus how do we perform the necessarily shellcheck linting and shfmt formatting when working locally? I don't rely on GitHub actions for validating my changes. I liked the Recently I've been creating PRs with builds that fail because I don't have a good way to run shfmt locally. |
env: | ||
GITHUB_API_TOKEN: ${{ github.token }} | ||
|
||
nix: |
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.
Why is this job named nix
?
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.
It is the job that runs our Bats tests on the *nix OSs. *
is invalid in the job name when I tried naming it *nix
. Didn't think the job name was particularly important.
The other job is called WSL1
because though it is a Windows OS, the environment we want to test in is different distros on WSL1 environment.
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.
We can rename the job to whatever, I just thought this was the most descriptive at the time.
I should have separated out this PR, sorry. It was initially just to add
I will put back the lint script and add |
See #961 for the revert of Shellcheck and addition of Shfmt scripts for local execution. With the addition of |
Thanks @jthegedus ! |
Sorry for being impatient and breaking your workflow. My distraction with CI took me away from my initial goal of adding |
Summary
Adopt
asdf
for out tests, internal dev. Init WSL test envs. Cleanup Vagrantfile.Vagrantfile
.tool-versions
forasdf
development and CI workflows.tool-versions
withasdf/actions
lint.sh
as our CI pipeline now enforces all formatting and linting reliably, so no need to run this script manually before release, nor for it to exist outside the CI Workflow definition.macos-10.15
,macos-11
(disabled as it's in preview),ubuntu-18.04
&ubuntu-20.04
windows-2019
.windows-2016
is not supported with WSL GitHub Action https://github.com/Vampire/setup-wslcontinue-on-error: true
as the failing tests will be addressed later. Tracking in Failing tests on windows. #465