From 0102d1b02f7bf5e209514e7e22419f1a6aa3fa42 Mon Sep 17 00:00:00 2001 From: Oleksandr Smirnov Date: Thu, 27 Feb 2025 21:51:48 +0200 Subject: [PATCH] this might actually fix everything, but at the same time this might be the stupidest commit i've ever made --- .github/workflows/tests.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e689a3f..aa6286b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,11 +25,13 @@ jobs: 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" - check-latest: false - name: Install Neovim uses: rhysd/action-setup-vim@v1 @@ -37,17 +39,12 @@ jobs: neovim: true version: ${{ matrix.versions }} - - - 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 gotests` - echo `gotests -version` - ls /home/runner/go/bin - exit 1 + - 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: Install Go bins run: |