Update job runners #94
This file contains hidden or 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
| name: test-zsh-5.4.2 | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| repository: "aureliojargas/clitest" | |
| path: bin/clitest | |
| - name: Install old Zsh (5.4.2) | |
| run: | | |
| sudo apt update | |
| sudo apt install -y wget build-essential libncursesw5-dev | |
| wget https://sourceforge.net/projects/zsh/files/zsh/5.4.2/zsh-5.4.2.tar.xz | |
| tar -xf zsh-5.4.2.tar.xz | |
| cd zsh-5.4.2 | |
| ./configure --with-tcsetpgrp | |
| make | |
| sudo make install | |
| - name: Verify Zsh Installation | |
| run: | | |
| which zsh | |
| zsh --version | |
| - name: Install shellcheck (if missing) | |
| run: | | |
| if ! command -v shellcheck >/dev/null; then | |
| sudo apt-get update | |
| sudo apt-get install -y shellcheck | |
| fi | |
| - name: Run unit tests | |
| run: | | |
| export PATH=$GITHUB_WORKSPACE/bin/clitest:$PATH | |
| export ZSH_BINARY=/usr/local/bin/zsh | |
| make test |