fix(ci): allow to set docs build as a required test (#7413)

* fix(ci): allow to set docs build as a required test

* build(docs): add problem matcher to docs
This commit is contained in:
Gustavo Valverde 2023-08-30 02:32:14 +01:00 committed by GitHub
parent 6ec670e45a
commit 7f28ac9dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 46 additions and 6 deletions

42
.github/workflows/docs.patch.yml vendored Normal file
View File

@ -0,0 +1,42 @@
name: Docs
on:
pull_request:
branches:
- main
paths-ignore:
# doc source files
- 'book/**'
- '**/firebase.json'
- '**/.firebaserc'
- 'katex-header.html'
# rustdoc source files
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
# configuration files
- '.cargo/config.toml'
- '**/clippy.toml'
# workflow definitions
- '.github/workflows/docs.yml'
jobs:
build-docs-book:
name: Build and Deploy Zebra Book Docs
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'
build-docs-external:
name: Build and Deploy Zebra External Docs
timeout-minutes: 45
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'
build-docs-internal:
name: Build and Deploy Zebra Internal Docs
timeout-minutes: 45
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

View File

@ -76,6 +76,8 @@ jobs:
with:
persist-credentials: false
- uses: r7kamura/rust-problem-matchers@v1.4.0
- name: Setup mdBook
uses: jontze/action-mdbook@v2.2.1
with:
@ -183,6 +185,8 @@ jobs:
with:
persist-credentials: false
- uses: r7kamura/rust-problem-matchers@v1.4.0
- name: Install last version of Protoc
uses: arduino/setup-protoc@v2.0.0
with:

View File

@ -15,9 +15,3 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'
docs:
name: Rust doc
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'