Repository navigation
feat: sync internal release-0910 #31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint | |
| on: | |
| push: | |
| pull_request: | |
| workflow_call: | |
| jobs: | |
| lint-go: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| module: [api, apps/rlark, apps/embodied-runtime] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: "${{ matrix.module }}/go.mod" | |
| cache: true | |
| - name: golangci-lint (${{ matrix.module }}) | |
| uses: golangci/golangci-lint-action@v6 | |
| with: | |
| version: latest | |
| install-mode: goinstall | |
| working-directory: ${{ matrix.module }} | |
| args: --timeout 5m | |
| lint-frontend: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: apps/rlark-ui/package-lock.json | |
| - name: Install dependencies | |
| working-directory: apps/rlark-ui | |
| run: npm ci | |
| - name: Run lint | |
| working-directory: apps/rlark-ui | |
| run: make lint | |
| - name: Run prettier | |
| working-directory: apps/rlark-ui | |
| run: npx prettier --check 'src/' 'index.html' 'package.json' 'vite.config.ts' 'tsconfig*.json' | |
| lint-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| cache-dependency-path: apps/rlark/docs/requirements.txt | |
| - name: Install dependencies | |
| run: python -m pip install --requirement apps/rlark/docs/requirements.txt | |
| - name: Build documentation | |
| run: mkdocs build --strict --config-file apps/rlark/mkdocs.yml | |
| - name: Check Markdown internal links | |
| uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2 | |
| with: | |
| args: --offline --no-progress --root-dir "${{ github.workspace }}" 'apps/rlark/docs/**/*.md' | |
| lycheeVersion: v0.24.2 |