[mirror] Make your go dev experience better github.com/olexsmir/gopher.nvim
neovim golang

chore: add docs checking thing (#88)

* chore: add doc checking thing

* testing

* Revert "testing"

This reverts commit ae0618d89f4cff036d307ffeb5f242ff37f58c01.

authored by olexsmir.xyz and committed by GitHub bb312713 57b5dbf6

Changed files
+41 -1
.github
workflows
+40
.github/workflows/docs.yml
··· 1 + name: docs 2 + 3 + on: 4 + push: 5 + branches: 6 + - main 7 + - develop 8 + pull_request: 9 + 10 + jobs: 11 + docs: 12 + name: linters 13 + runs-on: ubuntu-latest 14 + steps: 15 + - uses: actions/checkout@v4 16 + 17 + - name: Install Task 18 + uses: arduino/setup-task@v1 19 + with: 20 + version: 3.x 21 + repo-token: ${{ secrets.GITHUB_TOKEN }} 22 + 23 + - name: Install NeoVim 24 + uses: rhysd/action-setup-vim@v1 25 + with: 26 + neovim: true 27 + version: ${{ matrix.version }} 28 + 29 + - name: Cache .tests 30 + uses: actions/cache@v4 31 + with: 32 + path: | 33 + ${{ github.workspace }}/.tests 34 + key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }} 35 + 36 + - name: Generate docs 37 + run: task docgen 38 + 39 + - name: Check docs diff 40 + run: exit $(git status --porcelain doc | wc -l | tr -d " ")
+1 -1
.github/workflows/linters.yml
··· 12 12 name: linters 13 13 runs-on: ubuntu-latest 14 14 steps: 15 - - uses: actions/checkout@v3 15 + - uses: actions/checkout@v4 16 16 - uses: JohnnyMorganz/stylua-action@v3 17 17 with: 18 18 token: ${{ secrets.GITHUB_TOKEN }}