fix: move has_fd check into a function to reduce startup time #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push] | |
jobs: | |
test: | |
name: unit tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
version: [v0.9.0, nightly] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: date +%F > todays-date | |
- uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.version }} | |
- uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-deps-${{ matrix.version }}-${{ hashFiles('todays-date') }} | |
restore-keys: | | |
${{ runner.os }}-deps-${{ matrix.version }}- | |
- name: Run tests | |
run: | | |
nvim --version | |
make test | |