From ef28709f4f94b764ef6a67c76a4fd14bab23573f Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Mon, 9 May 2022 10:02:38 -0600 Subject: [PATCH] Add doc, build-run, format, static analysis, and unit test workflows --- .github/workflows/build-documentation.yml | 15 +++++++++++++++ .github/workflows/build-run-app.yml | 10 ++++++++++ .github/workflows/format-check.yml | 12 ++++++++++++ .github/workflows/static-analysis.yml | 13 +++++++++++++ .github/workflows/unit-test-coverage.yml | 12 ++++++++++++ 5 files changed, 62 insertions(+) create mode 100644 .github/workflows/build-documentation.yml create mode 100644 .github/workflows/build-run-app.yml create mode 100644 .github/workflows/format-check.yml create mode 100644 .github/workflows/static-analysis.yml create mode 100644 .github/workflows/unit-test-coverage.yml diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml new file mode 100644 index 0000000..98fe8e6 --- /dev/null +++ b/.github/workflows/build-documentation.yml @@ -0,0 +1,15 @@ +name: Build and Deploy Documentation + +on: + push: + pull_request: + +jobs: + build-documentation: + name: Build and deploy cFS documents + uses: nasa/cFS/.github/workflows/build-deploy-doc.yml@main + with: + target: "[\"hs-usersguide\"]" + app-name: hs + buildpdf: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} + deploy: ${{ github.event_name == 'push' && contains(github.ref, 'main')}} diff --git a/.github/workflows/build-run-app.yml b/.github/workflows/build-run-app.yml new file mode 100644 index 0000000..52bbb8c --- /dev/null +++ b/.github/workflows/build-run-app.yml @@ -0,0 +1,10 @@ +name: Build and Run + +on: + push: + pull_request: + +jobs: + build-run: + name: Build and run with startup msg verification + uses: nasa/cFS/.github/workflows/build-run-app.yml@main diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml new file mode 100644 index 0000000..2d73eeb --- /dev/null +++ b/.github/workflows/format-check.yml @@ -0,0 +1,12 @@ +name: Format Check + +# Run on all push and pull requests +on: + push: + pull_request: + +jobs: + format-check: + name: Run format check + uses: nasa/cFS/.github/workflows/format-check.yml@main + \ No newline at end of file diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml new file mode 100644 index 0000000..0c1d4a4 --- /dev/null +++ b/.github/workflows/static-analysis.yml @@ -0,0 +1,13 @@ +name: Static Analysis + +# Run on all push and pull requests +on: + push: + pull_request: + +jobs: + static-analysis: + name: Run cppcheck + uses: nasa/cFS/.github/workflows/static-analysis.yml@main + with: + strict-dir-list: './fsw' diff --git a/.github/workflows/unit-test-coverage.yml b/.github/workflows/unit-test-coverage.yml new file mode 100644 index 0000000..840b28b --- /dev/null +++ b/.github/workflows/unit-test-coverage.yml @@ -0,0 +1,12 @@ +name: Unit Test and Coverage + +on: + push: + pull_request: + +jobs: + unit-test-coverage: + name: Run unit test and coverage + uses: nasa/cFS/.github/workflows/unit-test-coverage.yml@main + with: + max-missed-branches: 9