Skip to content

Commit be1e421

Browse files
Migrate Cirrus build to Github actions
1 parent ed71c8c commit be1e421

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- branch-*
7+
- dogfood-*
8+
pull_request:
9+
workflow_dispatch:
10+
schedule:
11+
- cron: "30 1 * * *" # Run daily at 1:30 AM UTC
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: github-ubuntu-latest-m # Public repo uses custom GitHub-hosted runner
20+
name: Build
21+
permissions:
22+
id-token: write # Required for Vault OIDC authentication
23+
contents: write # Required for repository access and tagging
24+
steps:
25+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26+
- uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
27+
with:
28+
version: 2025.7.12
29+
- uses: SonarSource/ci-github-actions/build-maven@v1
30+
with:
31+
deploy-pull-request: true
32+
# Override artifactory roles for public repo using private access
33+
artifactory-reader-role: private-reader
34+
artifactory-deployer-role: qa-deployer
35+
maven-args: >
36+
-Dmaven.test.skip=true
37+
-Dsonar.skip=true
38+
-pl !java-checks-test-sources/default,!java-checks-test-sources/aws,!java-checks-test-sources/spring-web-4.0

.github/workflows/pr-cleanup.yml

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

mise.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tools]
2+
java = "24"
3+
maven = "3.9"

0 commit comments

Comments
 (0)