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

fix: Add CI status and change build-check to ci #833

Merged
merged 6 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
5 changes: 1 addition & 4 deletions .github/workflows/build-shared.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
name: build-shared

on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
workflow_call:

jobs:
build:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
name: build-static

on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
workflow_call:

jobs:
build:
Expand Down
36 changes: 34 additions & 2 deletions .github/workflows/build-check.yaml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
# Contributors:
# ZettaScale Zenoh Team, <[email protected]>
#
name: build-check
name: CI

on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
- cron: "0 6 * * 1-5"

jobs:
run_tests:
Expand Down Expand Up @@ -282,7 +284,7 @@ jobs:
if: always()
run: kill ${{ steps.run-zenoh.outputs.zenohd-pid }}

no_routeur:
no_router:
name: Test examples without router
runs-on: ubuntu-latest
steps:
Expand All @@ -304,3 +306,33 @@ jobs:
with:
config: '.markdownlint.yaml'
globs: '**/README.md'

build_shared:
name: Build shared libs
uses: ./.github/workflows/build-shared.yaml

build_static:
name: Build shared libs
diogomatsubara marked this conversation as resolved.
Show resolved Hide resolved
uses: ./.github/workflows/build-static.yaml

integration:
name: Run integration tests
uses: ./.github/workflows/integration.yaml

multicast:
name: Run multicast tests
uses: ./.github/workflows/multicast.yaml

# NOTE: In GitHub repository settings, the "Require status checks to pass
# before merging" branch protection rule ensures that commits are only merged
# from branches where specific status checks have passed. These checks are
# specified manually as a list of workflow job names. Thus we use this extra
# job to signal whether all CI checks have passed.
ci:
name: CI status checks
runs-on: ubuntu-latest
needs: [run_tests, check_format, c99_build, raweth_build, zenoh_build, modular_build, unstable_build, st_build, fragment_test, attachment_test, memory_leak_test, no_router, markdown_lint, build_shared, build_static, integration, multicast]
if: always()
steps:
- name: Check whether all jobs pass
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")'
7 changes: 1 addition & 6 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
name: integration

on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
- cron: "0 6 * * 1-5"
workflow_call:

jobs:
build:
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/multicast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
name: multicast

on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
- cron: "0 6 * * 1-5"
workflow_call:

jobs:
build:
Expand Down
Loading