all repos

gopher.nvim @ 6a3924cee5a9f36d316f8e4a90c3020438d3513f

Minimalistic plugin for Go development

gopher.nvim/.github/workflows/tests.yml(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: tests

on:
  push:
    branches:
    - main
    - develop
  pull_request:

jobs:
  tests:
    strategy:
      matrix:
        os: [ubuntu-latest]
        version:
          - stable
          - nightly
          - v0.10.0
          - v0.10.4
          - v0.11.0
          - v0.11.1
          - v0.11.2
          - v0.11.3
          - v0.11.4
    runs-on: ${{ matrix.os }}
    steps:
      - name: Install Task
        uses: arduino/setup-task@v1
        with:
          version: 3.x
          repo-token: ${{ secrets.GITHUB_TOKEN }}

      - 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
        with:
          neovim: true
          version: ${{ matrix.version }}

      - uses: actions/checkout@v4

      - name: Cache .tests
        uses: actions/cache@v4
        with:
          path: |
            ${{ github.workspace }}/.tests
            ~/.cache/go-build
            ~/go/pkg/mod
          key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }}

      - name: Install Go bins
        run: task install-deps

      - name: Run Tests
        run: |
          nvim --version
          task test