File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1919 merge_group :
2020 types : [checks_requested]
2121
22- env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24- SCORE_QNX_USER : ${{ secrets.SCORE_QNX_USER }}
25- SCORE_QNX_PASSWORD : ${{ secrets.SCORE_QNX_PASSWORD }}
26- SCORE_QNX_LICENSE : ${{ secrets.SCORE_QNX_LICENSE }}
2722jobs :
2823 build :
2924 name : Build Bazel Code
30- runs-on : ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || ' ubuntu-latest' }}
25+ runs-on : ubuntu-latest
3126 steps :
3227 - name : Checkout code
3328 uses : actions/checkout@v4.2.2
Original file line number Diff line number Diff line change 2020jobs :
2121 lint-commits :
2222 name : check-commit-messages
23- runs-on : ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || ' ubuntu-latest' }}
23+ runs-on : ubuntu-latest
2424 steps :
2525 - name : Checkout code
2626 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 2323jobs :
2424 lint-clippy :
2525 timeout-minutes : 6 # 6 minutes is the maximum allowed for a cold run
26- runs-on : ${{ vars.REPO_RUNNER_LABELS && fromJSON(vars.REPO_RUNNER_LABELS) || ' ubuntu-latest' }}
26+ runs-on : ubuntu-latest
2727 steps :
2828 - uses : actions/checkout@v3
2929 with :
Original file line number Diff line number Diff line change 1212# *******************************************************************************
1313
1414name : Tests
15-
1615on :
17- workflow_call :
18- inputs :
19- bazel-target :
20- description : " Custom Bazel target to run (e.g.: 'test //src/...')"
21- required : false
22- default : " test //..."
23- type : string
24-
16+ pull_request_target :
17+ types : [opened, reopened, synchronize]
18+ merge_group :
19+ types : [checks_requested]
2520jobs :
26- unit-tests :
27- name : Test Execution
28- runs-on : ubuntu-latest
29-
30- steps :
31- - name : Checkout repository
32- uses : actions/checkout@v4.2.2
33-
34- - name : Setup Bazel with shared caching
35- uses : bazel-contrib/setup-bazel@0.14.0
36- with :
37- disk-cache : true
38- repository-cache : true
39- bazelisk-cache : true
40-
41- - name : Run Tests via Bazel
42- run : |
43- echo "Running: bazel ${{ inputs.bazel-target }}"
44- bazel ${{ inputs.bazel-target }}
45-
21+ test :
22+ uses : eclipse-score/cicd-workflows/.github/workflows/test.yml@main
23+ permissions :
24+ contents : read
25+ pull-requests : read
26+ with :
27+ bazel-target : ' test //src/...'
You can’t perform that action at this time.
0 commit comments