You've already forked inshellisense
mirror of
https://github.com/wavetermdev/inshellisense.git
synced 2026-04-22 15:25:33 -07:00
ce8025aaed
* feat: implement xonsh support (partial) Signed-off-by: Chapman Pendery <cpendery@vt.edu> * feat: implement xonsh support (partial) Signed-off-by: Chapman Pendery <cpendery@vt.edu> * refactor: xonsh support to work with new shell integration mechanism Signed-off-by: Chapman Pendery <cpendery@vt.edu> * build: drop old xonsh integration Signed-off-by: Chapman Pendery <cpendery@vt.edu> * feat: enable xonsh testing Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: generator test Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: newline chars Signed-off-by: Chapman Pendery <cpendery@vt.edu> * fix: drop only clause Signed-off-by: Chapman Pendery <cpendery@vt.edu> --------- Signed-off-by: Chapman Pendery <cpendery@vt.edu>
68 lines
1.9 KiB
YAML
68 lines
1.9 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
version: [16, 18, 20]
|
|
os: ["macos-latest", "windows-latest", "ubuntu-latest"]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Use Node.js ${{ matrix.version }}.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.version }}
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run lint
|
|
|
|
- name: setup macOS shells
|
|
if: matrix.os == 'macos-latest'
|
|
shell: bash
|
|
run: |
|
|
brew install fish
|
|
brew install zsh
|
|
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
|
|
echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" > ~/.zshrc
|
|
|
|
sudo chmod g-w /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/share/zsh
|
|
|
|
- name: setup linux shells
|
|
if: matrix.os == 'ubuntu-latest'
|
|
shell: bash
|
|
run: |
|
|
sudo apt-add-repository ppa:fish-shell/release-3
|
|
sudo apt-get update
|
|
sudo apt install fish zsh
|
|
|
|
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
|
|
echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" > ~/.zshrc
|
|
|
|
sudo chmod -R 755 /usr/share/zsh/vendor-completions
|
|
sudo chown -R root:root /usr/share/zsh/vendor-completions
|
|
sudo chmod -R 755 /usr/share/zsh
|
|
sudo chown -R root:root /usr/share/zsh
|
|
|
|
- name: setup windows shells
|
|
if: matrix.os == 'windows-latest'
|
|
shell: pwsh
|
|
run: |
|
|
python -m pip install 'xonsh[full]'
|
|
|
|
- run: npm test
|
|
|
|
- run: npm run build
|
|
|
|
- run: npm link
|
|
|
|
- run: npm run test:e2e
|