From aa43041b99e4e16bc01eb54aa5b15bbd270c5905 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Thu, 15 Feb 2024 15:28:40 +0100 Subject: [PATCH] Fix when CI is run. (#963) The tests should run for every PR and when merged into the main or `v2.x` branch. Docs should be published only when merging into `v2.x` (for now). --- .github/workflows/ci.yml | 8 +++++--- .github/workflows/clang_format.yml | 6 ++---- .github/workflows/coverage.yml | 7 ++++--- .github/workflows/gh-pages.yml | 6 ++++-- .github/workflows/version_file.yml | 8 +++++--- 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3460c92fe..032cab8e0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,14 @@ concurrency: on: push: branches: - - ci_test - - release/** + - master + - main + - v2.x pull_request: branches: - master - - release/** + - main + - v2.x paths-ignore: - '**.md' - '**.rst' diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml index 56f2fd8d5..7b9be4909 100644 --- a/.github/workflows/clang_format.yml +++ b/.github/workflows/clang_format.yml @@ -8,10 +8,8 @@ on: pull_request: branches: - master - paths-ignore: - - '**.md' - - '**.rst' - - 'doc/**' + - main + - v2.x jobs: Code_Format: diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index aaf575a7d..e5f3ed5fd 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -8,12 +8,13 @@ on: push: branches: - master - - ci_test - - release/** + - main + - v2.x pull_request: branches: - master - - release/** + - main + - v2.x paths-ignore: - '**.md' - '**.rst' diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2032f91ab..101e7234d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,10 +3,12 @@ name: gh-pages on: push: branches: - - master + - v2.x pull_request: branches: + - v2.x - master + - main jobs: @@ -39,7 +41,7 @@ jobs: cp -r doc/poster build/doc/html/ - name: Deploy to GitHub Pages - if: ${{ success() && github.ref == 'refs/heads/master' && github.event_name == 'push' }} + if: ${{ success() && github.ref == 'refs/heads/v2.x' && github.event_name == 'push' }} uses: crazy-max/ghaction-github-pages@v2 with: target_branch: gh-pages diff --git a/.github/workflows/version_file.yml b/.github/workflows/version_file.yml index 56703f593..55cf0f6f5 100644 --- a/.github/workflows/version_file.yml +++ b/.github/workflows/version_file.yml @@ -3,12 +3,14 @@ name: HighFive Check Version File on: push: branches: - - ci_test - - release/** + - master + - main + - v2.x pull_request: branches: - master - - release/** + - main + - v2.x jobs: CheckVersion: