diff --git a/.github/workflows/arduino.yml b/.github/workflows/arduino.yml index 50b8f402c2..5a5bd912be 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 e1cfaf0cec..51a171ec5a 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 99be4c87fb..dfc8995de1 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 a54217d37f..4533835596 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 cd0a5b5d29..82999fb63c 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 5c6a38e5c5..349920fbba 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 6c3a42820b..d9bb52eae5 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 cdefd047c6..46380b2650 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 32c1cd3858..48fc03d9e6 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 543e7cadd0..c3e3d76770 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 42cc3ad17a..b2b2ad1564 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 c69e488114..403772331b 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 c3185f88b6..605cfe4598 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 }}