Skip to content

CI

CI #1528

Workflow file for this run

name: CI
on:
push:
branches: 'master'
pull_request:
branches: 'master'
schedule:
- cron: 0 0 * * *
jobs:
linux:
strategy:
matrix:
version: [stable, v0.7.0, master]
runs-on: ubuntu-latest
steps:
- name: Set current date
id: vars
run: |
echo "current_date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- uses: actions/checkout@v3
- uses: actions/cache@v3
id: cache
with:
path: neovim
key: ${{ runner.os }}-nvim-${{ matrix.version }}-${{ steps.vars.outputs.current_date }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake build-essential cmake gcc-11 gettext gperf libtool-bin locales ninja-build pkg-config unzip
- name: Setup lua
uses: leafo/gh-actions-lua@v9
with:
luaVersion: "luajit"
- name: Setup luarocks
uses: leafo/gh-actions-luarocks@v4
- name: Setup vusted
run: |
luarocks install vusted 2.3.4-1
- name: Run functional tests
env:
NEOVIM_BRANCH: ${{ matrix.version }}
run: |
make functionaltest
- name: Run unit tests
env:
VIMRUNTIME: ${{ github.workspace }}/neovim/runtime/
VUSTED_NVIM: ${{ github.workspace }}/neovim/build/bin/nvim
run: |
make unittest
- name: Check formatting
uses: JohnnyMorganz/stylua-action@v2
with:
version: v0.17.1
token: ${{ secrets.GITHUB_TOKEN }}
args: --check lua/ test/