Skip to content

Commit

Permalink
Add Rust documentation check to GitHub Actions (#937)
Browse files Browse the repository at this point in the history
* Add Rust documentation check to GitHub Actions

* Break intra-doc link to test CI

* Revert "Break intra-doc link to test CI"

* Use docsrs build configuration

* Correct step name
  • Loading branch information
cycraig authored Jul 11, 2022
1 parent c19b765 commit 6657c1e
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test-docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- epic/*
- support/*

concurrency:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

Expand All @@ -21,8 +21,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Test Build

- name: Test Wiki Build
working-directory: documentation
run: |
yarn install --immutable
yarn build
- name: Install Rust nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true

- name: Test Rust Documentation
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: "-D warnings --cfg docsrs"
with:
command: doc
toolchain: nightly
args: --all-features --no-deps --workspace

0 comments on commit 6657c1e

Please sign in to comment.