Skip to content

Add srcenv PowerShell init #225

Add srcenv PowerShell init

Add srcenv PowerShell init #225

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
linux:
name: Linux
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 ash 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
macos:
name: macOS
runs-on: macos-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.darwin.aarch64.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: |
brew update
brew install elvish fish mksh murex nushell
- name: Run srcenv tests
run: ./srcenv.tests
windows:
name: Windows
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install ShellCheck
shell: bash
run: |
curl -Lso shellcheck.zip https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.zip
7z x shellcheck.zip shellcheck.exe
- name: Run ShellCheck
shell: bash
run: |
./shellcheck.exe --color=always srcenv srcenv.benchmarks srcenv.tests srcenv.version && \
printf '\033[32m✔\033[0m ShellCheck\n'
- name: Run srcenv tests
shell: bash
run: ./srcenv.tests