Merge pull request #3814 from ruby/dependabot/github_actions/action-d… #3032
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: Documentation | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.3" | |
| bundler-cache: true | |
| - name: Set up Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - name: Install doxygen and dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install doxygen graphviz | |
| - name: Generate the templates | |
| run: bundle exec rake templates | |
| - name: Check ruby coverage | |
| run: bundle exec rake rdoc:coverage | |
| - name: Check C coverage | |
| run: doxygen Doxyfile | |
| - name: Check Java coverage | |
| run: javadoc -Xdoclint:all,-missing -d ../doc/java -subpackages * | |
| working-directory: java | |
| - name: Generate Rust documentation | |
| run: | | |
| bundle exec rake cargo:build | |
| cargo doc --no-deps --target-dir ../doc/rust | |
| working-directory: rust |