From 03b7da74eee555064741fbc54e667eb918e8aa52 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 12 Aug 2021 11:31:31 +0200 Subject: Fix formatting according to style-guide (#1057) --- .github/workflows/format.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 22e56d61..5f9db8cb 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 -i 2 -ci -l -d . -- cgit v1.2.3 From 988c74ec5665250c572dcc6bae018ed0ea180c25 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Fri, 13 Aug 2021 12:11:18 +0200 Subject: feat: Add pre-commit hook for linting and formatting (#1132) * feat: Add pre-commit hook for linting and formatting * format with prettier --- .github/workflows/lint.yaml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 87f93a00..f5aab0eb 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,17 +22,13 @@ 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' -- cgit v1.2.3 From 1fbc34cf1d3c2ec5500ddb6e14f04751680d969f Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sun, 15 Aug 2021 18:01:37 +0200 Subject: Fix slow CI by installing a neovim binary directly (#1059) --- .github/workflows/install.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 08801f1b..6fb0d49c 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -22,19 +22,18 @@ 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 -- cgit v1.2.3 From 1cc2452eb7b76aad36a6d9d210abff88edf6721a Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Tue, 17 Aug 2021 12:07:11 +0430 Subject: [Bugfix] ignore jdtls to fix `CI` (#1339) --- .github/workflows/format.yaml | 2 +- .github/workflows/lint.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 5f9db8cb..142ba7f1 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -40,5 +40,5 @@ jobs: # https://google.github.io/styleguide/shellguide.html - name: Check formatting run: | - shfmt -i 2 -ci -l -d . + shfmt -f . | grep -v jdtls | xargs shfmt -i 2 -ci -l -d diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f5aab0eb..d187f497 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -32,3 +32,4 @@ jobs: uses: ludeeus/action-shellcheck@master with: scandir: './utils' + ignore: 'bin' -- cgit v1.2.3 From 101c6834333ffb06856155054ea77747819ef5fc Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Mon, 23 Aug 2021 17:18:42 +0200 Subject: [Refactor] Installer v2 with support for backup (#1052) --- .github/workflows/install.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 6fb0d49c..f7d9da01 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: @@ -38,14 +38,15 @@ jobs: - name: Install LunarVim timeout-minutes: 4 run: | - bash ./utils/installer/install.sh --testing + mkdir -p "$HOME/.local/share/lunarvim" + mkdir -p "$HOME/.config/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 @@ -53,7 +54,7 @@ jobs: # name: "FreeBSD macos-latest" # steps: # - uses: actions/checkout@v2 - + # - name: Install dependencies for FreeBSD # uses: vmactions/freebsd-vm@v0.1.5 # with: -- cgit v1.2.3 From 27679f988fe187f9831ba7895c9c3a7ce2dd14f4 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Thu, 26 Aug 2021 20:32:16 +0200 Subject: [Refactor]: only allow a single logger (#1405) --- .github/workflows/install.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index f7d9da01..fa8bf0e3 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -38,8 +38,9 @@ jobs: - name: Install LunarVim timeout-minutes: 4 run: | - mkdir -p "$HOME/.local/share/lunarvim" - mkdir -p "$HOME/.config/lvim" + 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 -- cgit v1.2.3