Skip to content
Snippets Groups Projects
Unverified Commit b9d69a3c authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

CI with GitHub Actions: focus on PR trigger (#20128)

To avoid double runs of various checks (linters, tests, etc) on feature
branch, we mainly run on pull_request trigger, i.e. the checks are
carried out once that feature branch appears in a PR, and not before.

We do however still run on push trigger for the important branches
(master, release-*).
parent 28d29274
No related branches found
No related tags found
No related merge requests found
name: Backend
on:
pull_request:
push:
branches:
- '**'
paths:
- '**.clj*'
- '**.edn'
- '**.java'
- '**/metabase-plugin.yaml'
- '.github/workflows/**'
- 'master'
- 'release-**'
pull_request:
jobs:
......
......@@ -3,12 +3,8 @@ name: CLJS
on:
push:
branches:
- '**'
paths:
- 'shared/src/'
- '**/package.json'
- '**/yarn.lock'
- '.github/workflows/**'
- 'master'
- 'release-**'
pull_request:
jobs:
......
......@@ -3,13 +3,8 @@ name: Docs
on:
push:
branches:
- '**'
paths:
- 'docs/**'
- './bin/verify-docs-links'
- '**/package.json'
- '**/yarn.lock'
- '.github/workflows/**'
- 'master'
- 'release-**'
pull_request:
jobs:
......
name: Frontend
on:
pull_request:
push:
branches:
- '**'
paths:
- 'frontend/**'
- 'shared/**'
- 'enterprise/frontend/**'
- '**/package.json'
- '**/yarn.lock'
- '**/.eslintrc'
- '.github/workflows/**'
- 'master'
- 'release-**'
pull_request:
jobs:
......
......@@ -3,15 +3,8 @@ name: Fuzzing
on:
push:
branches:
- '**'
paths:
- 'frontend/**'
- 'shared/**'
- 'enterprise/frontend/**'
- '**/package.json'
- '**/yarn.lock'
- '**/.eslintrc'
- '.github/workflows/**'
- 'master'
- 'release-**'
pull_request:
paths-ignore:
- 'docs/**'
......
name: i18n
on:
pull_request:
push:
branches:
- '**'
paths:
- '**.clj*'
- '**.js'
- '**.jsx'
- '**.ts'
- '**.tsx'
- '.github/workflows/**'
- 'bin/**'
- 'master'
- 'release-**'
pull_request:
jobs:
......
name: Whitespace
on:
pull_request:
push:
branches:
- '**'
paths:
- '**.yaml'
- '**.yml'
- '**.clj'
- '**.edn'
- '**.el'
- '**.html'
- '**.json'
- '**.js*'
- '**.sh'
- 'master'
- 'release-**'
pull_request:
jobs:
whitespace-linter:
......
name: YAML
on:
pull_request:
push:
branches:
- '**'
paths:
- '**.yml'
- '**.yaml'
- 'package.json'
- 'master'
- 'release-**'
pull_request:
jobs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment