Skip to content

Commit 2f874c2

Browse files
committed
Fix workflows
1 parent fe8cf49 commit 2f874c2

5 files changed

Lines changed: 14 additions & 65 deletions

File tree

.github/actions/setup-rust-build/action.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,10 @@ on:
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 }}
2722
jobs:
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

.github/workflows/gitlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ env:
2020
jobs:
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

.github/workflows/lint_clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ env:
2323
jobs:
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:

.github/workflows/tests.yml

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,16 @@
1212
# *******************************************************************************
1313

1414
name: Tests
15-
1615
on:
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]
2520
jobs:
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/...'

0 commit comments

Comments
 (0)