diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index 50b8f402c..5a5bd912b 100644 --- a/.github/workflows/arduino.yml +++ b/.github/workflows/arduino.yml @@ -4,6 +4,13 @@ on: branches: [ master, release/v8.* ] pull_request: branches: [ master, release/v8.* ] + +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: lint: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/build_micropython.yml b/.github/workflows/build_micropython.yml index e1cfaf0ce..51a171ec5 100644 --- a/.github/workflows/build_micropython.yml +++ b/.github/workflows/build_micropython.yml @@ -4,6 +4,12 @@ on: push: pull_request: +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml index 99be4c87f..dfc8995de 100644 --- a/.github/workflows/ccpp.yml +++ b/.github/workflows/ccpp.yml @@ -6,6 +6,12 @@ on: pull_request: branches: [ master, release/v8.* ] +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/check_bom.yml b/.github/workflows/check_bom.yml index a54217d37..453383559 100644 --- a/.github/workflows/check_bom.yml +++ b/.github/workflows/check_bom.yml @@ -4,6 +4,12 @@ on: push: pull_request: +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: bom-check: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/check_conf.yml b/.github/workflows/check_conf.yml index cd0a5b5d2..82999fb63 100644 --- a/.github/workflows/check_conf.yml +++ b/.github/workflows/check_conf.yml @@ -3,6 +3,12 @@ on: push: pull_request: +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: verify-conf-internal: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/check_properties.yml b/.github/workflows/check_properties.yml index 5c6a38e5c..349920fbb 100644 --- a/.github/workflows/check_properties.yml +++ b/.github/workflows/check_properties.yml @@ -2,6 +2,12 @@ name: Verify the widget property name on: push: pull_request: + +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true jobs: verify-property-name: diff --git a/.github/workflows/check_style.yml b/.github/workflows/check_style.yml index 6c3a42820..d9bb52eae 100644 --- a/.github/workflows/check_style.yml +++ b/.github/workflows/check_style.yml @@ -2,6 +2,12 @@ name: Verify code formatting on: push: pull_request: + +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true jobs: verify-formatting: diff --git a/.github/workflows/compile_docs.yml b/.github/workflows/compile_docs.yml index cdefd047c..46380b265 100644 --- a/.github/workflows/compile_docs.yml +++ b/.github/workflows/compile_docs.yml @@ -4,6 +4,13 @@ on: branches: - master - 'release/*' + +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + env: EM_VERSION: 2.0.4 EM_CACHE_FOLDER: 'emsdk-cache' diff --git a/.github/workflows/gen_json.yml b/.github/workflows/gen_json.yml index 32c1cd385..48fc03d9e 100644 --- a/.github/workflows/gen_json.yml +++ b/.github/workflows/gen_json.yml @@ -3,6 +3,12 @@ on: push: pull_request: +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each PR +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: test_api_json: if: github.repository == 'lvgl/lvgl' diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 543e7cadd..c3e3d7677 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -6,6 +6,12 @@ on: pull_request: branches: [ master, release/v8.* ] +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each push +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/makefile_uefi.yml b/.github/workflows/makefile_uefi.yml index 42cc3ad17..b2b2ad156 100644 --- a/.github/workflows/makefile_uefi.yml +++ b/.github/workflows/makefile_uefi.yml @@ -6,6 +6,12 @@ on: pull_request: branches: [ master ] +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each push +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/release_branch_updater.yml b/.github/workflows/release_branch_updater.yml index c69e48811..403772331 100644 --- a/.github/workflows/release_branch_updater.yml +++ b/.github/workflows/release_branch_updater.yml @@ -6,6 +6,12 @@ on: - 'release/v*' # on release branches workflow_dispatch: # allow manual triggering +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each push +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: run-release-branch-updater: if: github.repository == 'lvgl/lvgl' diff --git a/.github/workflows/verify_kconfig.yml b/.github/workflows/verify_kconfig.yml index c3185f88b..605cfe459 100644 --- a/.github/workflows/verify_kconfig.yml +++ b/.github/workflows/verify_kconfig.yml @@ -3,6 +3,12 @@ on: push: pull_request: +# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency +# Ensure that only one commit will be running tests at a time on each push +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: verify-kconfig: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}