Self update functionality #56
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
name: "Shellspec" | |
on: [push, pull_request] | |
env: | |
SHELLSPEC_VERSION: 0.28.1 | |
TERM: xterm-256color | |
HOMEBREW_NO_AUTO_UPDATE: 1 | |
jobs: | |
shellspec-macos: | |
name: "MacOS" | |
runs-on: macos-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install shellspec | |
run: | | |
echo "${HOME}/.local/bin" >> "$GITHUB_PATH" | |
# brew update | |
brew install bash | |
brew install kcov | |
curl -fsSL https://git.io/shellspec | sh -s ${{ env.SHELLSPEC_VERSION }} --yes | |
- name: Run shellspec Tests | |
run: | | |
shellspec | |
shellspec-ubuntu: | |
name: "Ubuntu" | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install shellspec | |
run: | | |
echo "${HOME}/.local/bin" >> "$GITHUB_PATH" | |
curl -fsSL https://git.io/shellspec | sh -s ${{ env.SHELLSPEC_VERSION }} --yes | |
sudo apt-get update | |
sudo apt-get install kcov | |
- name: Run shellspec tests | |
run: | | |
shellspec |