ci: add auto_merge_enabled to PR activity types and concurrency settings (#2471)

* ci: add auto_merge_enabled to pr activity types

* fix  (auto-update.yml): remove 'dev' branch from trigger to run workflow on 'main' branch pushes only

fix (js_autofix.yml): remove unnecessary push trigger for 'main' branch in workflow to run on specific file changes only

* ci: Update concurrency settings in CI workflows
This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-07-01 22:45:15 -03:00 committed by GitHub
commit 26a71e1c36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 24 additions and 11 deletions

View file

@ -3,7 +3,6 @@ name: Auto-update
on:
push:
branches:
- dev
- main
jobs:

View file

@ -2,11 +2,7 @@ name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled, auto_merge_disabled]
paths:
- "src/frontend/**"
push:
branches: [ "main" ]
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "src/frontend/**"

View file

@ -5,6 +5,9 @@ on:
paths:
- "src/frontend/**"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
NODE_VERSION: "21"

View file

@ -2,10 +2,14 @@ name: Lint Python
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
env:
POETRY_VERSION: "1.8.2"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Run Mypy

View file

@ -1,7 +1,7 @@
name: autofix.ci
on:
pull_request:
types: [opened, synchronize, reopened, auto_merge_enabled, auto_merge_disabled]
types: [opened, synchronize, reopened, auto_merge_enabled]
paths:
- "poetry.lock"
- "pyproject.toml"

View file

@ -2,11 +2,15 @@ name: Python tests
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
branches: [main]
env:
POETRY_VERSION: "1.8.2"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Run Unit Tests

View file

@ -2,7 +2,11 @@ name: Ruff Style Check
on:
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
POETRY_VERSION: "1.8.2"

View file

@ -8,8 +8,11 @@ on:
required: false
type: string
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened, auto_merge_enabled]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
POETRY_VERSION: "1.8.3"