Skip to content

Commit

Permalink
Add build check to avoid to setup branch protection manually
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 31, 2023
1 parent 0f58675 commit cc8f0a2
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,17 @@ jobs:
- run: cmake -DPYTHON_EXECUTABLE=$(which python${{ matrix.python }}) .
- run: make -j2
- run: make test

check:
if: always()

needs:
- test

runs-on: Ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
15 changes: 15 additions & 0 deletions .github/workflows/macos-linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,18 @@ jobs:
run: |
cd build
make uninstall
check:
if: always()

needs:
- eigenpy-conda

runs-on: Ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
14 changes: 14 additions & 0 deletions .github/workflows/ros_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,17 @@ jobs:
# Run industrial_ci
- uses: 'ros-industrial/industrial_ci@9f963f67ebb889792175776c5ee00134d7bb569b'
env: ${{ matrix.env }}

check:
if: always()

needs:
- CI

runs-on: Ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
14 changes: 14 additions & 0 deletions .github/workflows/windows-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,17 @@ jobs:
:: Uninstall
cmake --build . --config Release --target uninstall
if errorlevel 1 exit 1
check:
if: always()

needs:
- build

runs-on: Ubuntu-latest

steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}

0 comments on commit cc8f0a2

Please sign in to comment.