diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml deleted file mode 100644 index 997448f..0000000 --- a/.github/workflows/docs.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: docs - -on: - push: - branches: - - main - - develop - pull_request: - -jobs: - docs: - name: docs - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install Task - uses: arduino/setup-task@v1 - with: - version: 3.x - repo-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Install NeoVim - uses: rhysd/action-setup-vim@v1 - with: - neovim: true - version: stable - - - name: Cache .tests - uses: actions/cache@v4 - with: - path: | - ${{ github.workspace }}/.tests - key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }} - - - name: Generate docs - run: task docgen - - - name: Check docs diff - run: exit $(git status --porcelain doc | wc -l | tr -d " ") diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index ae5be14..175465e 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -9,7 +9,7 @@ on: jobs: linters: - name: linters + name: Lua runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -23,3 +23,34 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: . + + docs: + name: Docs + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Task + uses: arduino/setup-task@v1 + with: + version: 3.x + repo-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Install NeoVim + uses: rhysd/action-setup-vim@v1 + with: + neovim: true + version: stable + + - name: Cache .tests + uses: actions/cache@v4 + with: + path: | + ${{ github.workspace }}/.tests + key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }} + + - name: Generate docs + run: task docgen + + - name: Diff + run: exit $(git status --porcelain doc | wc -l | tr -d " ")