Skip to content

Add a shutdown command & state to the picubed #538

Add a shutdown command & state to the picubed

Add a shutdown command & state to the picubed #538

Workflow file for this run

name: C/C++ Tests
on:
push:
branches:
- main
paths:
- "src/**"
- "bzl/**"
- "BUILD.bazel"
- ".bazelrc"
- ".github/workflows/*.yaml"
pull_request:
workflow_dispatch:
jobs:
changes:
runs-on: ubuntu-latest
outputs:
should_test: ${{ github.event_name != 'pull_request' || steps.filter.outputs.test == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
test:
- 'src/**'
- 'bzl/**'
- 'BUILD.bazel'
- '.bazelrc'
- '.github/workflows/*.yaml'
Unit-Tests:
needs: changes
if: ${{ needs.changes.outputs.should_test == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-unit
repository-cache: true
- name: Run unit tests
run: bazel test //src/... --test_output=errors
- name: Archive unit test visualization logs
if: always()
uses: actions/upload-artifact@v4
with:
name: unit-test-viz-logs
path: |
bazel-testlogs/**/test.outputs/*.json
FSM-Integration:
needs: changes
if: ${{ needs.changes.outputs.should_test == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Bazel
uses: bazel-contrib/setup-bazel@0.18.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-fsm
repository-cache: true
- name: FSM test (debug)
run: bazel test //src/scheduler:fsm_test_debug --test_output=errors
- name: FSM test (flight)
run: bazel test //src/scheduler:fsm_test_flight --config=fsm-flight --test_output=errors
- name: FSM test (bringup)
run: bazel test //src/scheduler:fsm_test_bringup --config=fsm-bringup --test_output=errors
- name: Archive FSM visualization logs
if: always()
uses: actions/upload-artifact@v4
with:
name: fsm-viz-logs
path: |
bazel-testlogs/**/test.outputs/fsm_viz_*.json