refactor: use vim.system #233
Workflow file for this run
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: | |
branches: | |
- main | |
- develop | |
pull_request: | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
versions: | |
- stable | |
- nightly | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Task | |
uses: arduino/setup-task@v1 | |
with: | |
version: 3.x | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Go mod init | |
run: go mod init github.com/olexsmir/gopher.nvim | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.24.0" | |
- name: Install Neovim | |
uses: rhysd/action-setup-vim@v1 | |
with: | |
neovim: true | |
version: ${{ matrix.versions }} | |
- name: Fix envs | |
id: fix-envs | |
run: | |
echo "GOPATH=/home/runner/go" >> $GITHUB_ENV | |
echo "GOBIN=$GOPATH/bin" >> $GITHUB_ENV | |
echo "$GOBIN" >> $GITHUB_PATH | |
- name: Once again, what does it say? | |
run: | | |
nvim --clean --headless -u ./scripts/minimal_init.lua +"=vim.system({'gotests'}):wait().stdout" +q | |
echo "PATH -- $PATH" | |
echo "GOBIN -- $GOBIN" | |
echo "GOPATH -- $GOPATH" | |
echo "whereis `whereis gotests`" | |
echo "gotests `gotests -version`" | |
echo "ls runner `ls /home/runner/`" | |
echo "ls go `ls /home/runner/go`" | |
exit 1 | |
- name: Install Go bins | |
run: | | |
nvim --version | |
task ci:install-deps | |
- name: Run Tests | |
run: | | |
nvim --version | |
task tests |