Skip to content

Commit c523270

Browse files
ci: Setup a Github workflow
1 parent 5b49e30 commit c523270

File tree

5 files changed

+66
-0
lines changed

5 files changed

+66
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Dependabot Automerge"
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Pull Request"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
pr-check:
11+
name: "Dependabot Automerge"
12+
uses: mParticle/mparticle-workflows/.github/workflows/dependabot-automerge.yml@main

.github/workflows/pull-request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: "Pull Request"
2+
on: pull_request
3+
jobs:
4+
pr-check:
5+
name: "Pull Request Check"
6+
uses: mParticle/mparticle-workflows/.github/workflows/android-kit-pull-request.yml@main
7+
with:
8+
branch_name: ${{ github.head_ref }}

.github/workflows/push.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Push"
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
push-check:
9+
name: "Push Check"
10+
uses: mParticle/mparticle-workflows/.github/workflows/android-kit-push.yml@main
11+
with:
12+
branch_name: ${{ github.head_ref }}

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Release"
2+
3+
on:
4+
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
workflow_dispatch:
9+
inputs:
10+
dryRun:
11+
description: "Do a dry run to preview instead of a real release [true/false]"
12+
required: true
13+
default: "true"
14+
15+
jobs:
16+
release-kit:
17+
name: "Release Kit"
18+
uses: mParticle/mparticle-workflows/.github/workflows/android-kit-release.yml@main
19+
secrets: inherit
20+
with:
21+
dryRun: ${{ github.event.inputs.dryRun || 'false' }}

.github/workflows/sonarcloud.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: "SonarCloud"
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Pull Request", "Push"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
sonarcloud-check:
11+
name: "SonarCloud Check"
12+
uses: mParticle/mparticle-workflows/.github/workflows/sonarcloud.yml@main
13+
secrets: inherit

0 commit comments

Comments
 (0)