49 lines
1,010 B
YAML
49 lines
1,010 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- develop
|
|
pull_request:
|
|
|
|
jobs:
|
|
tests:
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
version:
|
|
- v0.10.0
|
|
- nightly
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
|
|
- name: Cache .tests
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: .tests
|
|
key: ${{ runner.os }}-tests-${{ hashFiles('.tests') }}
|
|
|
|
- name: Install NeoVim
|
|
uses: rhysd/action-setup-vim@v1
|
|
with:
|
|
neovim: true
|
|
version: ${{ matrix.version }}
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Install Go bins
|
|
run: nvim --headless -u "./scripts/minimal_init.lua" -c "GoInstallDeps" -c "qa!"
|
|
|
|
- name: Run Tests
|
|
run: |
|
|
nvim --version
|
|
task tests
|