Skip to content

Commit

Permalink
github: Add CI for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptomilk committed Jul 15, 2023
1 parent aaa2048 commit ffabbdd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Run tests

on:
push:
branches-ignore: [sync, stable]
pull_request:
branches-ignore: [sync, stable]

jobs:
run-tests:
name: Run tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
neovim_version: ['v0.7.0', 'v0.8.0', 'v0.9.0', 'nightly']

steps:
- uses: actions/checkout@v3
with:
submodules: true
- run: date +%F > todays-date
- name: Restore cache for today's nightly.
uses: actions/cache@v3
with:
path: _neovim
key: ${{ runner.os }}-x64-${{ hashFiles('todays-date') }}
- name: Setup neovim
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: ${{ matrix.neovim_version }}
- name: Run tests
run: make test

0 comments on commit ffabbdd

Please sign in to comment.