Skip to content
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

Test installation in zsh and fish shells #139

Merged
merged 5 commits into from
Apr 27, 2023
Merged

Test installation in zsh and fish shells #139

merged 5 commits into from
Apr 27, 2023

Conversation

feedmeapples
Copy link
Contributor

@feedmeapples feedmeapples commented Mar 9, 2023

What was changed

Testing install .sh script in zsh and fish

Why?

testing zsh & fish, getting the green checkmark for CI

Checklist

  1. Closes

  2. How was this tested:

CI

  1. Any docs updates needed?

@feedmeapples feedmeapples changed the title Fix installation test for ZSH Test installation in zsh and fish shells, remove running in Windows Mar 9, 2023
@feedmeapples feedmeapples changed the title Test installation in zsh and fish shells, remove running in Windows Test installation in zsh and fish shells Mar 9, 2023
run: sh -c '${{ matrix.shell }} -c "./install.sh"'
- name: Install ${{matrix.shell}} using apt-get
if: matrix.os == 'ubuntu-latest' && matrix.shell != 'sh'
run: "sudo apt-get install -y ${{ matrix.shell }}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you do something at the end to confirm installed?

.github/workflows/ci.yml Outdated Show resolved Hide resolved

test-install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
shell: [sh, bash, zsh]
shell: [sh, bash, zsh, fish]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not do these (just) by "shell" you should (also) do them also by "approach". In many cases the shell does not matter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

run: "brew update && brew install ${{ matrix.shell }}"

- name: Update SHELL env variable
run: "env SHELL=$(which ${{ matrix.shell }})"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i've tried this though have been running into syntax issues with shell: ${{ .. }} approach. Hardcoding the shells worked

@feedmeapples feedmeapples requested a review from cretz April 27, 2023 09:23
@feedmeapples feedmeapples merged commit 90be38c into main Apr 27, 2023
@feedmeapples feedmeapples deleted the zsh branch April 27, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants