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

Run e2e jobs as a single workflow #6310

Merged
merged 19 commits into from
Dec 7, 2024
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-badger.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT Badger

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-badger-${{ github.run_id }}
yurishkuro marked this conversation as resolved.
Show resolved Hide resolved
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-cassandra.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT Cassandra

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-cassandra-${{ github.run_id }}
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-elasticsearch.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT Elasticsearch

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-elasticsearch-${{ github.run_id }}
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-grpc.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT gRPC

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-grpc-${{ github.run_id }}
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-kafka.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT Kafka

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-kafka-${{ github.run_id }}
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-memory.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT Memory

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-memory-${{ github.run_id }}
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/ci-e2e-opensearch.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: CIT OpenSearch

on:
push:
branches: [main]

pull_request:
branches: [main]
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ (github.event.pull_request && github.event.pull_request.number) || github.ref || github.run_id }}
cancel-in-progress: true
group: cit-opensearch-${{ github.run_id }}
cancel-in-progress: false

# See https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
permissions: # added using https://github.com/step-security/secure-workflows
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/cit-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Combined CIT Workflow
yurishkuro marked this conversation as resolved.
Show resolved Hide resolved

on:
push:
branches: [main]

pull_request:
branches: [main]

concurrency:
group: combined-cit-${{ github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
badger:
uses: ./.github/workflows/ci-e2e-badger.yaml

cassandra:
uses: ./.github/workflows/ci-e2e-cassandra.yml

elasticsearch:
uses: ./.github/workflows/ci-e2e-elasticsearch.yml

grpc:
uses: ./.github/workflows/ci-e2e-grpc.yml

kafka:
uses: ./.github/workflows/ci-e2e-kafka.yml

memory:
uses: ./.github/workflows/ci-e2e-memory.yaml

opensearch:
uses: ./.github/workflows/ci-e2e-opensearch.yml





Loading