mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 14:59:53 +08:00
* Adds bypass for lint go for RFD and Docs changes. * spacing * Update docs test to only check for docs, examples changes or bypass * include merge groups * test docs change * remove change * Test go change * remove go test change * test doc changes * remove docs test change * fix indentation * fix indentation
36 lines
643 B
YAML
36 lines
643 B
YAML
name: Lint (Docs)
|
|
run-name: Lint (Docs)
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- 'docs/**'
|
|
- 'examples/**'
|
|
merge_group:
|
|
paths:
|
|
- 'docs/**'
|
|
- 'examples/**'
|
|
|
|
jobs:
|
|
doc-tests:
|
|
name: Lint (Docs)
|
|
if: ${{ !startsWith(github.head_ref, 'dependabot/') }}
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
container:
|
|
image: ghcr.io/gravitational/docs:latest
|
|
volumes:
|
|
- ${{ github.workspace }}:/src/content
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Run tests
|
|
run: cd /src && yarn markdown-lint
|