Bump actions/upload-artifact from 4.3.6 to 4.4.0 #452
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: main | |
permissions: | |
contents: read | |
jobs: | |
documentationjob: | |
permissions: | |
contents: write | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Install Dependencies | |
run: | | |
export BUILD_DOCU=true | |
bash .github/workflows/install_dependencies.sh | |
- name: Build Documentation and Test | |
run: | | |
GTEST_OUTPUT="xml:test_results" | |
colcon build --event-handlers console_direct+ --executor sequential --packages-up-to ad_rss ad_rss_map_integration --cmake-args -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DBUILD_COVERAGE=ON -DBUILD_APIDOC=ON | |
colcon test --event-handlers console_direct+ --packages-select ad_rss ad_rss_map_integration | |
colcon test-result | |
- name: Code Coverage and CodeCov | |
run: | | |
bash .github/workflows/code_coverage.sh | |
- name: Upload coverage as artifact | |
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0 | |
with: | |
name: coverage_report | |
path: ./coverage | |
if-no-files-found: error | |
overwrite: true | |
- name: Documentation Deployment (Test) | |
run: | | |
mkdocs build | |
if [ ${{ github.event_name }} != 'pull_request' ]; then bash .github/workflows/deploy_documentation.sh true; else bash .github/workflows/deploy_documentation.sh false; fi |