Skip to content

Code-generate for federated programs #1055

Code-generate for federated programs

Code-generate for federated programs #1055

Workflow file for this run

name: Continuous Integration
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
pull-requests: write
jobs:
ci:
name: ci
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install deps
run: |
sudo apt-get install lcov pipx -y
sudo pipx install clang-format clang-tidy
- name: Setup java and gradle for compiling lfc
uses: ./.github/actions/lingua-franca
# Uncomment to SSH into the runner.
# - name: Setup upterm session
# uses: lhotari/action-upterm@v1
- name: Format check
id: format-check
run: |
clang-format --version
make format-check
continue-on-error: true
- name: Run format and commit changes
if: steps.format-check.outcome == 'failure'
run: |
make format
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
git checkout "${GITHUB_REF:11}"
git commit -am "Automatic code formatting"
git push
exit 1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run unit tests
run: make unit-test
- name: Run LF integration tests
run: |
source env.bash
make lf-test
- name: Build examples
run: make examples
- name: Coverage
run: make coverage
- name: Publish coverage results
uses: romeovs/lcov-reporter-action@2a28ec3e25fb7eae9cb537e9141603486f810d1a
with:
lcov-file: build/coverage.info
delete-old-comments: true
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'pull_request' }}