Add srcenv benchmarks #154
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install ShellCheck | |
run: | | |
curl -Ls https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz | \ | |
tar xJ --strip-components=1 shellcheck-v0.10.0/shellcheck | |
- name: Run ShellCheck | |
run: | | |
./shellcheck --color=always srcenv srcenv.benchmarks srcenv.tests srcenv.version && \ | |
printf '\033[32m✔\033[0m ShellCheck\n' | |
- name: Install shells | |
run: | | |
sudo apt-get update | |
sudo apt-get install csh elvish fish ksh mksh tcsh zsh | |
echo /home/linuxbrew/.linuxbrew/bin >> "$GITHUB_PATH" | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
brew update | |
brew install murex nushell | |
- name: Run srcenv tests | |
run: ./srcenv.tests |