-
Notifications
You must be signed in to change notification settings - Fork 6
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
chore: Rework setup script #27
base: main
Are you sure you want to change the base?
Conversation
I’m going to heavily annotate the changes I made to explain why. It makes a lot of changes that may or may not work with your ultimate goals, but inasmuch as I can test it locally (when I have everything except PostgreSQL installed), it seems to work once I added a $ mkdir z && touch z/{.bashrc,.zshrc}
$ DRY_RUN=1 HOME=z priv/scirpt.sh |
e76cd1b
to
09316ee
Compare
Wow, the best PR I've seen in my life! Most of the things you've changed I agree with. The rest I don't understand yet. I'm only worried about whether we'll still be able to run the GitHub Actions workflow with these changes. phx.tools/test/scripts/script.exp Lines 1 to 9 in a24a101
But they failed at line spawn ./../../priv/script.sh
tput: No value for $TERM and no -T specified |
Thanks for the kind words. I’ve been shell scripting for decades now, so this really wasn't too hard.
I didn't look at this from the perspective of testing, but from user experience. The test failures did point out a bug, and I should have tested for it, but it's sort of hard to test for on a machine. I’ve put a fixup commit that should resolve the test failures in the expect script. It makes a couple of changes to the expect script to make sure that a bit more is seen than was previously expected. |
spawn ./../../priv/script.sh
Unsupported shell: bash
expect: spawn id exp3 not open
while executing
"expect "phx.tools setup is complete!""
(file "script.exp" line 13) This time I think it's because of this line */bash | */fish | */zsh) : ;; phx.tools/.github/workflows/pr.yml Lines 289 to 292 in a24a101
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell Not sure if /bin/ prefix works for the shell option.
|
I'll look at that a bit later. Probably by pushing a debugging fix. |
bd54cb5
to
9319c8e
Compare
9319c8e
to
e0d8374
Compare
23e053a
to
3074ff8
Compare
- Add dependency checking with dependabot. - Put more specific version locks for actions. - Upgrade actions which were using Node 16 actions.
3074ff8
to
102acfa
Compare
Addresses #20 (comment).