diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/format.yaml | 27 | ||||
| -rw-r--r-- | .github/workflows/install.yaml | 5 | ||||
| -rw-r--r-- | .github/workflows/lint.yaml | 24 | 
3 files changed, 29 insertions, 27 deletions
| diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index 142ba7f1..7f5f57d6 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -1,11 +1,11 @@  name: format  on:    push: -    branches: '**' +    branches: "**"    pull_request:      branches: -      - 'master' -      - 'rolling' +      - "master" +      - "rolling"  jobs:    stylua-check: @@ -14,14 +14,13 @@ jobs:      steps:        - uses: actions/checkout@v2 -      - name: Prepare dependencies -        run: | -          sudo apt install -y curl unzip --no-install-recommends -          bash ./utils/installer/install_stylua.sh +      - name: Lint with stylua +        uses: JohnnyMorganz/[email protected] +        with: +          token: ${{ secrets.GITHUB_TOKEN }} +          # CLI arguments +          args: --check . -      - name: Check formatting -        run: | -          ./utils/stylua --config-path .stylua.toml -c .    shfmt-check:      name: "Formatting check with shfmt"      runs-on: ubuntu-20.04 @@ -31,14 +30,12 @@ jobs:        - name: Setup Go          uses: actions/setup-go@v2          with: -          go-version: '1.16' -       +          go-version: "1.16" +        - name: Use shfmt          run: |            GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt        # https://google.github.io/styleguide/shellguide.html        - name: Check formatting -        run: | -          shfmt -f . | grep -v jdtls | xargs shfmt -i 2 -ci -l -d -     +        run: make style-sh diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index fa8bf0e3..3e529dc6 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -43,6 +43,11 @@ jobs:            ln -s "$PWD"/* "$HOME"/.local/share/lunarvim/lvim/.            bash ./utils/installer/install.sh +      - name: Run unit-tests +        # NOTE: make sure to adjust the timeout if you start adding a lot of tests +        timeout-minutes: 4 +        run: make test +        - name: Test LunarVim PackerCompile          run: if "$HOME"/.local/bin/lvim --headless +PackerCompile -c ':qall' 2>&1|grep -q 'Error'; then false; fi diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index d187f497..93050bba 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,11 +1,11 @@  name: lint  on:    push: -    branches: '**' +    branches: "**"    pull_request:      branches: -      - 'master' -      - 'rolling' +      - "master" +      - "rolling"  jobs:    lua-linter: @@ -13,23 +13,23 @@ jobs:      runs-on: ubuntu-20.04      steps:        - uses: actions/checkout@v2 -       +        - uses: leafo/gh-actions-lua@v8        - uses: leafo/gh-actions-luarocks@v4        - name: Use luacheck          run: luarocks install luacheck -       +        - name: Run luacheck -        run: luacheck *.lua lua/ +        run: make lint-lua    shellcheck:      name: Shellcheck      runs-on: ubuntu-latest      steps: -    - uses: actions/checkout@v2 -    - name: Run ShellCheck -      uses: ludeeus/action-shellcheck@master -      with: -       scandir: './utils' -       ignore: 'bin' +      - uses: actions/checkout@v2 +      - name: Run ShellCheck +        uses: ludeeus/action-shellcheck@master +        with: +          scandir: "./utils" +          ignore: "bin" | 
