ci: improve make scripts, workflow #14
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: CI | |
on: | |
push: | |
branches: [main, dev] | |
pull_request: | |
branches: "*" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.actor }} | |
cancel-in-progress: true | |
jobs: | |
unit_tests: | |
name: unit tests | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
rev: [nightly, v0.10.3] | |
include: | |
- os: ubuntu-latest | |
install-deps: sudo apt-get update && sudo apt-get install -y fzf ripgrep fd-find | |
- os: macos-latest | |
install-deps: brew update && brew install fzf ripgrep fd | |
- os: windows-latest | |
install-deps: choco install fzf ripgrep fd | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.rev }} | |
- name: Install Dependencies | |
shell: bash | |
run: | | |
${{ matrix.install-deps }} | |
nvim --version | |
fzf --version | |
rg --version | |
if [ "$RUNNER_OS" == "Linux" ]; then | |
fdfind --version | |
else | |
fd --version | |
fi | |
make deps | |
- name: Run tests | |
run: | | |
make test |