Skip to content

Commit

Permalink
ci: Add test for doc examples
Browse files Browse the repository at this point in the history
We recently got support for tested examples for the documentation. This
enables testing for the rust examples.

Signed-off-by: Peter Neuroth <[email protected]>
  • Loading branch information
nepet committed Jun 20, 2024
1 parent bd46a5a commit 71ef882
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/docs-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,22 @@ on:
workflow_dispatch:

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: arduino/setup-protoc@v3
with:
version: "3.19.3"
- run: cargo build --manifest-path ./examples/rust/getting-started/Cargo.toml

build:
needs: test
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
Expand Down

0 comments on commit 71ef882

Please sign in to comment.