Bumps the development-dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `3` | `4` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `3` | `4` | | [spring-io/spring-doc-actions](https://github.com/spring-io/spring-doc-actions) | `0.0.13` | `0.0.17` | | [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) | `1.19.0` | `1.26.0` | | [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` | Updates `actions/checkout` from 3 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) Updates `actions/upload-artifact` from 3 to 4 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) Updates `spring-io/spring-doc-actions` from 0.0.13 to 0.0.17 - [Commits](https://github.com/spring-io/spring-doc-actions/compare/v0.0.13...v0.0.17) Updates `slackapi/slack-github-action` from 1.19.0 to 1.26.0 - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](https://github.com/slackapi/slack-github-action/compare/v1.19.0...v1.26.0) Updates `github/codeql-action` from 2 to 3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: development-dependencies - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major dependency-group: development-dependencies - dependency-name: spring-io/spring-doc-actions dependency-type: direct:production update-type: version-update:semver-patch dependency-group: development-dependencies - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: development-dependencies - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: development-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
76 lines
3.2 KiB
YAML
76 lines
3.2 KiB
YAML
name: Check Samples
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
GRADLE_ENTERPRISE_CACHE_USER: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
|
|
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
|
|
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
|
|
COMMIT_OWNER: ${{ github.event.pusher.name }}
|
|
COMMIT_SHA: ${{ github.sha }}
|
|
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
|
|
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
|
|
|
|
jobs:
|
|
prerequisites:
|
|
name: Pre-requisites for building
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'spring-projects/spring-pulsar'
|
|
outputs:
|
|
runjobs: ${{ steps.continue.outputs.runjobs }}
|
|
project_version: ${{ steps.continue.outputs.project_version }}
|
|
boot_version: ${{ steps.continue.outputs.boot_version }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- id: continue
|
|
name: Determine if should continue
|
|
run: |
|
|
# Run jobs if in upstream repository
|
|
echo "runjobs=true" >>$GITHUB_OUTPUT
|
|
# Extract version from gradle.properties
|
|
version=$(cat gradle.properties | grep "version=" | awk -F'=' '{print $2}')
|
|
echo "project_version=$version" >>$GITHUB_OUTPUT
|
|
bootVersion=$(cat gradle/libs.versions.toml | grep "spring-boot = \"" | cut -d '"' -f2)
|
|
echo "boot_version=$bootVersion" >>$GITHUB_OUTPUT
|
|
check_samples:
|
|
name: Check Samples project
|
|
needs: [prerequisites]
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- javaVersion: 17
|
|
springBootVersion: "${{ needs.prerequisites.outputs.boot_version }}"
|
|
springPulsarVersion: "${{ needs.prerequisites.outputs.project_version }}"
|
|
samplesTarget: ':runAllSampleTests'
|
|
- javaVersion: 21
|
|
springBootVersion: "${{ needs.prerequisites.outputs.boot_version }}"
|
|
springPulsarVersion: "${{ needs.prerequisites.outputs.project_version }}"
|
|
samplesTarget: ':runAllSampleTests -x :spring-pulsar-sample-apps:sample-pulsar-functions:sample-signup-function:test'
|
|
- javaVersion: 17
|
|
springBootVersion: "3.2.3-SNAPSHOT"
|
|
springPulsarVersion: "1.0.0-SNAPSHOT"
|
|
samplesTarget: ':runAllSampleTests'
|
|
runs-on: ubuntu-latest
|
|
if: needs.prerequisites.outputs.runjobs
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: spring-io/spring-gradle-build-action@v2
|
|
- name: Check samples project
|
|
env:
|
|
LOCAL_REPOSITORY_PATH: ${{ github.workspace }}/build/publications/repos
|
|
VERSION: ${{ matrix.springPulsarVersion }}
|
|
BOOT_VERSION: ${{ matrix.springBootVersion }}
|
|
JAVA_VERSION: ${{ matrix.javaVersion }}
|
|
run: |
|
|
./gradlew publishMavenJavaPublicationToLocalRepository
|
|
./gradlew \
|
|
--init-script ./spring-pulsar-sample-apps/sample-apps-check-ci.gradle \
|
|
-PlocalRepositoryPath="$LOCAL_REPOSITORY_PATH" \
|
|
-PspringPulsarVersion="$VERSION" \
|
|
-PspringBootVersion="$BOOT_VERSION" \
|
|
-PtestToolchain="$JAVA_VERSION" \
|
|
-PsampleTests \
|
|
${{ matrix.samplesTarget }}
|