diff options
author | christianchiarulli <[email protected]> | 2021-08-29 14:17:32 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-08-29 14:17:32 -0400 |
commit | ed5559d259e38a78796a7d81421f02ba6dafac4b (patch) | |
tree | afa9c00c017382bac547265a8a1e16b9770a07eb /.github/workflows | |
parent | e7b6d3b6f5982ea1042ffd499a7b85c18f0b782e (diff) | |
parent | c7a5122fe2c14dba0f28f1c077f838f957884afc (diff) |
Merge branch 'rolling' of github.com:ChristianChiarulli/LunarVim
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/format.yaml | 3 | ||||
-rw-r--r-- | .github/workflows/install.yaml | 37 | ||||
-rw-r--r-- | .github/workflows/lint.yaml | 23 |
3 files changed, 31 insertions, 32 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 22e56d61..142ba7f1 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -37,7 +37,8 @@ jobs: run: | GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt + # https://google.github.io/styleguide/shellguide.html - name: Check formatting run: | - shfmt -l -d . + shfmt -f . | grep -v jdtls | xargs shfmt -i 2 -ci -l -d diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 08801f1b..fa8bf0e3 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -1,11 +1,11 @@ name: install on: push: - branches: '**' + branches: "**" pull_request: branches: - - 'master' - - 'rolling' + - "master" + - "rolling" jobs: unixish: @@ -22,31 +22,32 @@ jobs: if: github.event.pull_request.draft == false steps: - uses: actions/checkout@v2 - - - name: Install dependencies for Linux - if: matrix.os == 'linux' - run: | - sudo add-apt-repository ppa:neovim-ppa/unstable -y - sudo apt-get update - sudo apt-get install neovim -y - - name: Install dependencies for OSX + # sha256sum is not available by default + - name: Installl dependencies for OSX if: matrix.os == 'osx' run: | - brew update >/dev/null - brew install neovim + echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $GITHUB_ENV + echo "$HOME/.local/bin" >> $GITHUB_PATH + brew install coreutils + + - name: Install neovim binary + run: | + bash ./utils/installer/install-neovim-from-release - name: Install LunarVim timeout-minutes: 4 run: | - bash ./utils/installer/install.sh --testing + mkdir -p "$HOME"/.local/share/lunarvim/lvim + mkdir -p "$HOME"/.config/lvim + ln -s "$PWD"/* "$HOME"/.local/share/lunarvim/lvim/. + bash ./utils/installer/install.sh - name: Test LunarVim PackerCompile - run: if lvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi + run: if "$HOME"/.local/bin/lvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi - name: Test LunarVim Health - run: if lvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi - + run: if "$HOME"/.local/bin/lvim --headless +checkhealth -c ':qall' 2>&1|grep -q 'Error'; then false; fi # freebsd: # runs-on: macos-latest # if: github.event.pull_request.draft == false @@ -54,7 +55,7 @@ jobs: # name: "FreeBSD macos-latest" # steps: # - uses: actions/checkout@v2 - + # - name: Install dependencies for FreeBSD # uses: vmactions/[email protected] # with: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 87f93a00..d187f497 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,17 +22,14 @@ jobs: - name: Run luacheck run: luacheck *.lua lua/ - - shell-linter: - name: "Linting with shellcheck" - runs-on: ubuntu-20.04 + + shellcheck: + name: Shellcheck + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Use shellcheck - run: sudo apt-get install shellcheck - - - name: Run shellcheck - run: | - pwd - shellcheck $(find . -name "*.sh") + - uses: actions/checkout@v2 + - name: Run ShellCheck + uses: ludeeus/action-shellcheck@master + with: + scandir: './utils' + ignore: 'bin' |