Skip to content

Commit

Permalink
Migrate CI from Bamboo to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
artembilan committed Nov 8, 2023
1 parent 1c98e3f commit 75d4825
Show file tree
Hide file tree
Showing 8 changed files with 140 additions and 47 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'type: bug, status: waiting-for-triage'
assignees: ''

---

**In what version(s) of Spring Integration are you seeing this issue?**

For example:

2.5.3

Between 2.5.0 and 3.0.0

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior.

**Expected behavior**

A clear and concise description of what you expected to happen.

**Sample**

A link to a GitHub repository with a [minimal, reproducible sample](https://stackoverflow.com/help/minimal-reproducible-example).

Reports that include a sample will take priority over reports that do not.
At times, we may require a sample, so it is good to try and include a sample up front.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Community Support
url: https://stackoverflow.com/questions/tagged/spring-integration
about: Please ask and answer questions on StackOverflow with the tag spring-integration
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'status: waiting-for-triage, type: enhancement'
assignees: ''

---

**Expected Behavior**

<!--- Tell us how it should work -->

**Current Behavior**

<!--- Explain the difference from current behavior -->

**Context**

<!---
How has this issue affected you?
What are you trying to accomplish?
What other alternatives have you considered?
Are you aware of any workarounds?
-->
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!--
Thanks for contributing to Spring Integration Samples.
Please provide a brief description of your pull-request and reference any related issue numbers (prefix references with #) or StackOverflow questions.
See the [Contributor Guidelines for more information](https://github.com/spring-projects/spring-integration/blob/main/CONTRIBUTING.adoc).
-->
29 changes: 29 additions & 0 deletions .github/workflows/ci-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI SNAPSHOT

on:
workflow_dispatch:
push:
branches:
- main

env:
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}

jobs:
build_snapshot:
runs-on: ubuntu-latest
name: CI Build SNAPSHOT for ${{ github.ref_name }}
steps:

- uses: actions/checkout@v4
with:
show-progress: false

- name: Set up Gradle
uses: spring-io/spring-gradle-build-action@v2

- name: Build
run: ./gradlew check

40 changes: 40 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Pull Request Build

on:
pull_request:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:

- uses: actions/checkout@v4
with:
show-progress: false

- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
cache: gradle

- name: Build PR
uses: burrunan/gradle-cache-action@v1
with:
debug: false
concurrent: true
gradle-build-scan-report: false
arguments: check

- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '*/build/reports/tests/**/*.*'
retention-days: 3
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

30 changes: 0 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ buildscript {
classpath 'org.gretty:gretty:4.0.3'
}
}
plugins {
id 'org.sonarqube' version '4.0.0.2929'
}

description = 'Spring Integration Samples'

Expand Down Expand Up @@ -304,27 +301,10 @@ subprojects { subproject ->
ext.xLintArg = '-Xlint:all,-options,-processing'
[compileJava, compileTestJava]*.options*.compilerArgs = [xLintArg]

jacocoTestReport {
onlyIf { System.properties['sonar.host.url'] }
dependsOn test
reports {
xml.required = true
html.required = false
}
}

rootProject.tasks['sonarqube'].dependsOn jacocoTestReport

test {
useJUnitPlatform()
// suppress all console output during testing unless running `gradle -i`
logging.captureStandardOutput(LogLevel.INFO)
jacoco {
destinationFile = file("$buildDir/jacoco.exec")
}
if (System.properties['sonar.host.url']) {
finalizedBy jacocoTestReport
}
}
}

Expand Down Expand Up @@ -1554,13 +1534,3 @@ project('tcp-with-headers') {
standardInput = System.in
}
}

sonarqube {
properties {
property 'sonar.links.homepage', linkHomepage
property 'sonar.links.ci', linkCi
property 'sonar.links.issue', linkIssue
property 'sonar.links.scm', linkScmUrl
property 'sonar.links.scm_dev', linkScmDevConnection
}
}

0 comments on commit 75d4825

Please sign in to comment.