Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflow: Test Ref deployment (topology and instances.fpp) with fpp-to-json #2816

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/fpp-json-model-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Runs the subtopology autocoder tool to test the subtopology tool (https://github.com/mosa11aei/fprime-subtopology-tool)

Check failure on line 1 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`subtopology` is not a recognized word. (unrecognized-spelling)

Check failure on line 1 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`subtopology` is not a recognized word. (unrecognized-spelling)

Check failure on line 1 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`subtopology` is not a recognized word. (unrecognized-spelling)

name: "fpp-to-json Analysis Test"

on:
push:
branches: [ devel, release/** ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ devel, release/** ]
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/actions/spelling/**'
- '.github/ISSUE_TEMPLATE/**'

jobs:
get-branch:
name: "Get target branch"
uses: ./.github/workflows/reusable-get-pr-branch.yml
with:
target_repository: mosa11aei/fprime-rngLibrary

Check failure on line 22 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`aei` is not a recognized word. (unrecognized-spelling)

Check failure on line 22 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`mosa` is not a recognized word. (unrecognized-spelling)

fpp-json-analysis:
name: "fpp-to-json analysis"
runs-on: ubuntu-latest
needs: get-branch
steps:
- name: "Checkout target repository"
uses: actions/checkout@v4
with:
submodules: false
repository: mosa11aei/fprime-rngLibrary

Check failure on line 33 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`aei` is not a recognized word. (unrecognized-spelling)

Check failure on line 33 in .github/workflows/fpp-json-model-test.yml

View workflow job for this annotation

GitHub Actions / Spell checking

`mosa` is not a recognized word. (unrecognized-spelling)
ref: ${{ needs.get-branch.outputs.target-branch }}
- name: "Overlay current F´ revision"
uses: actions/checkout@v4
with:
submodules: true
path: ./fprime
fetch-depth: 0
- uses: ./fprime/.github/actions/setup
with:
location: ./fprime
- name: "Verify CMake is installed"
run: |
sudo apt-get update
sudo apt-get install -y cmake
- name: "Generate Ref deployment"
run: |
fprime-util generate
working-directory: ./fprime/Ref
- name: "(Ref/topology.fpp) fpp-to-json analysis"
if: always()
run: |
DEPENDENCIES=$(fpp-depend ./build-fprime-automatic-native/locs.fpp ./Top/topology.fpp)
fpp-to-json ${DEPENDENCIES} ./Top/topology.fpp
working-directory: ./fprime/Ref
- name: "(Ref/instances.fpp) fpp-to-json analysis"
if: always()
run: |
DEPENDENCIES=$(fpp-depend ./build-fprime-automatic-native/locs.fpp ./Top/instances.fpp)
fpp-to-json ${DEPENDENCIES} ./Top/instances.fpp
working-directory: ./fprime/Ref
Loading