chore(ci): reorganize
This commit is contained in:
parent
0eebaf7eb8
commit
f609a57333
2 changed files with 32 additions and 41 deletions
40
.github/workflows/docs.yml
vendored
40
.github/workflows/docs.yml
vendored
|
|
@ -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 " ")
|
|
||||||
33
.github/workflows/linters.yml
vendored
33
.github/workflows/linters.yml
vendored
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linters:
|
linters:
|
||||||
name: linters
|
name: Lua
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
@ -23,3 +23,34 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: .
|
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 " ")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue