Skip to content

Commit

Permalink
Create workflow for testing fpp-to-json with ref
Browse files Browse the repository at this point in the history
  • Loading branch information
mosa11aei committed Jul 25, 2024
1 parent 6e25034 commit 3e9d13a
Showing 1 changed file with 63 additions and 0 deletions.
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

0 comments on commit 3e9d13a

Please sign in to comment.