-
Notifications
You must be signed in to change notification settings - Fork 34
Combine check workflows #456
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| # Note: Checks here are difficult to modify, because they always use the definition | ||
| # from the main branch. Prefer using on-pr.yml if at all possible. | ||
|
|
||
| name: PR Target | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize] | ||
| merge_group: | ||
| types: [checks_requested] | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
| issues: write | ||
|
|
||
| jobs: | ||
| qnx-build: | ||
| name: Build and test ${{ matrix.bazel-config }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| bazel-config: [unit-tests-x86_64-qnx, unit-tests-arm64-qnx] | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/qnx-build.yml@d5dfe332bab87edb629ae691dd4c83923712ec3d | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| with: | ||
| bazel-target: "//score/... //examples/..." | ||
| bazel-config: ${{ matrix.bazel-config }} | ||
| bazel-test-target: "//examples/... //score/... //tests/..." | ||
| credential-helper: "scripts/internal/qnx_creds.py" | ||
| bazel-disk-cache: ${{ matrix.bazel-config }} | ||
| secrets: | ||
| score-qnx-license: ${{ secrets.SCORE_QNX_LICENSE }} | ||
| score-qnx-user: ${{ secrets.SCORE_QNX_USER }} | ||
| score-qnx-password: ${{ secrets.SCORE_QNX_PASSWORD }} | ||
|
|
||
| # This is only here as a dependency of the documentation, the main test job is in on-pr.yml. | ||
| testlogs: | ||
| name: Upload test logs | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/tests.yml@93aac16ada7d247bbb6ae926509ddea74cf5213a # v0.0.2 | ||
| permissions: | ||
| contents: read | ||
| with: | ||
| bazel-target: 'test --lockfile_mode=error //score/... //tests/... //scripts/... --config=x86_64-linux' | ||
| upload-name: 'bazel-testlogs' | ||
|
|
||
| docs-build: | ||
| name: Build documentation | ||
| needs: testlogs | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/docs.yml@93aac16ada7d247bbb6ae926509ddea74cf5213a # v0.0.2 | ||
| permissions: | ||
| contents: write | ||
| pages: write | ||
| pull-requests: write | ||
| id-token: write | ||
| with: | ||
| # the bazel-target depends on your repo specific docs_targets configuration (e.g. "suffix") | ||
| bazel-target: "--lockfile_mode=error //:docs -- --github_user=${{ github.repository_owner }} --github_repo=${{ github.event.repository.name }}" | ||
| retention-days: 3 | ||
| tests-report-artifact: bazel-testlogs | ||
|
|
||
| license-check: | ||
| name: License check | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/license-check.yml@93aac16ada7d247bbb6ae926509ddea74cf5213a # v0.0.2 | ||
| with: | ||
| repo-url: "${{ github.server_url }}/${{ github.repository }}" | ||
| bazel-target: "run --lockfile_mode=error //:license-check" | ||
| secrets: | ||
| dash-api-token: ${{ secrets.ECLIPSE_GITLAB_API_TOKEN }} | ||
|
|
||
| ready: | ||
| name: Ready to merge | ||
| needs: | ||
| - qnx-build | ||
| - docs-build | ||
| - license-check | ||
| runs-on: ubuntu-slim | ||
| permissions: {} | ||
| if: always() | ||
| steps: | ||
| - name: Fail if any required job did not succeed | ||
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | ||
| run: false | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this we would have a duplicate test stage. I understand why this is needed but I think we should remove this in the future.
I made an issue for this as I think we should still merge this #459