From c108c4aa4010fb71296f903c95561f21b4008450 Mon Sep 17 00:00:00 2001 From: delphinus Date: Thu, 27 Jul 2023 08:02:54 +0900 Subject: [PATCH] test: make tests work on CI --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3b07d9bd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Run tests + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + # TODO: PlenaryBustedDirectory seems not to run on Windows + # - windows-latest + version: + - v0.9.0 + - nightly + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Checkout plenary.nvim + uses: actions/checkout@v3 + with: + repository: nvim-lua/plenary.nvim + path: plenary.nvim + - name: Install Neovim + uses: rhysd/action-setup-vim@v1 + id: nvim + with: + neovim: true + version: ${{ matrix.version }} + - name: Run tests + env: + PLENARY_PATH: plenary.nvim + EXE: ${{ steps.nvim.outputs.executable }} + run: |- + make test NVIM=$(perl -e '$_ = $ENV{EXE}; s,\\,/,g; print')