Skip to content

Commit

Permalink
remove main
Browse files Browse the repository at this point in the history
Signed-off-by: Laurynas Jagutis <laurynas.jagutis@alliander.com>
  • Loading branch information
Laurynas-Jagutis committed Feb 21, 2025
1 parent 921c5bc commit d56b286
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 73 deletions.
30 changes: 26 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,44 @@ name: CI Build

# Controls when the workflow will run
on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline on pull request
pull_request:
# run pipeline on merge queue
merge_group:
# run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: "0 2 * * *" # Based on UTC time

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-ci-build
cancel-in-progress: true

jobs:
main:
uses: "./.github/workflows/main.yml"
build-test-release:
uses: "./.github/workflows/build-test-release.yml"
permissions:
contents: write
with:
release: false
clang-tidy-target: "all power_grid_model_benchmark_cpp"
create_release: false

check-code-quality:
uses: "./.github/workflows/check-code-quality.yml"

reuse-compliance:
uses: "./.github/workflows/reuse-compliance.yml"

clang-tidy:
uses: "./.github/workflows/clang-tidy.yml"
with:
target: "all power_grid_model_benchmark_cpp"

citations:
uses: "./.github/workflows/citations.yml"

sonar:
uses: "./.github/workflows/sonar.yml"
4 changes: 0 additions & 4 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ name: Build and Test C++ and Python

# Controls when the workflow will run
on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline from another workflow
workflow_call:
inputs:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/check-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
name: Check Code Quality

on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline from another workflow
workflow_call:

Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
name: Clang Tidy

on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline from another workflow
workflow_call:
inputs:
Expand Down
45 changes: 0 additions & 45 deletions .github/workflows/main.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/reuse-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
name: REUSE Compliance Check

on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline from another workflow
workflow_call:
# run this workflow manually from the Actions tab
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
name: Sonar Cloud

on:
# run pipeline on push event of main branch
push:
branches:
- main
# run pipeline on pull request
pull_request:
# run pipeline on merge queue
merge_group:
# run pipeline from another workflow
workflow_call:
# run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-sonar
Expand Down

0 comments on commit d56b286

Please sign in to comment.