Skip to content

separate main part and add tests for entire logic #46

separate main part and add tests for entire logic

separate main part and add tests for entire logic #46

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
unit-tests:
name: Unit tests
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '>=1.21.0'
- uses: rhysd/action-setup-vim@v1
- uses: rhysd/action-setup-vim@v1
with:
neovim: true
- run: go build
- run: go test -v -race -coverprofile coverage.txt
- name: Upload coverage to codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}