Skip to content

Commit 286b9a8

Browse files
PLUGINAPI-152 Migrate to GitHub Actions (#260)
1 parent 293493a commit 286b9a8

6 files changed

Lines changed: 78 additions & 93 deletions

File tree

.cirrus.star

Lines changed: 0 additions & 4 deletions
This file was deleted.

.cirrus.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- 'branch-*'
7+
pull_request:
8+
merge_group:
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
id-token: write
17+
contents: write
18+
19+
jobs:
20+
build:
21+
name: Build
22+
runs-on: github-ubuntu-latest-s
23+
timeout-minutes: 30
24+
steps:
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
with:
27+
fetch-depth: 0
28+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
29+
with:
30+
version: 2025.7.12
31+
- uses: SonarSource/ci-github-actions/build-gradle@v1
32+
with:
33+
artifactory-reader-role: private-reader
34+
artifactory-deployer-role: qa-deployer
35+
deploy-pull-request: true
36+
- name: Upload build reports on failure
37+
if: failure()
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: build-reports
41+
path: '**/build/reports/**/*'
42+
if-no-files-found: ignore
43+
- name: Upload test results on failure
44+
if: failure()
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: test-results
48+
path: '**/test-results/**/*.xml'
49+
if-no-files-found: ignore
50+
51+
promote:
52+
needs:
53+
- build
54+
runs-on: github-ubuntu-latest-s
55+
name: Promote
56+
steps:
57+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
58+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
59+
with:
60+
cache_save: false
61+
version: 2025.7.12
62+
- uses: SonarSource/ci-github-actions/get-build-number@v1
63+
- uses: SonarSource/ci-github-actions/promote@v1
64+
with:
65+
promote-pull-request: true

.github/workflows/pr_cleanup.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Cleanup PR Resources
2+
on:
3+
pull_request:
4+
types: [ closed ]
5+
jobs:
6+
cleanup:
7+
runs-on: sonar-xs
8+
permissions:
9+
actions: write
10+
steps:
11+
- uses: SonarSource/ci-github-actions/pr_cleanup@v1

.github/workflows/releasability.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ jobs:
1313
id-token: write
1414
statuses: write
1515
contents: read
16-
if: >-
17-
(contains(fromJSON('["main", "master"]'), github.event.check_suite.head_branch) || startsWith(github.event.check_suite.head_branch, 'dogfood-') || startsWith(github.event.check_suite.head_branch, 'branch-'))
18-
&& github.event.check_suite.conclusion == 'success'
19-
&& github.event.check_suite.app.slug == 'cirrus-ci'
16+
if: github.event.workflow_run.conclusion == 'success'
2017
steps:
2118
- uses: SonarSource/gh-action_releasability/releasability-status@v3
2219
with:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'com.github.hierynomus.license' version '0.16.1'
33
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
44
id 'com.jfrog.artifactory' version '4.28.1'
5-
id 'org.sonarqube' version '3.3'
5+
id 'org.sonarqube' version '7.1.0.6387'
66
}
77

88
allprojects {

0 commit comments

Comments
 (0)