Migrate CI from Bamboo to GitHub Actions

This commit is contained in:
Artem Bilan
2023-11-08 16:03:14 -05:00
parent 1c98e3fd99
commit 75d4825be3
8 changed files with 140 additions and 47 deletions

29
.github/workflows/ci-snapshot.yml vendored Normal file
View File

@@ -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
.github/workflows/pr-build.yml vendored Normal file
View File

@@ -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