Skip to content

Commit 13dfd8e

Browse files
committed
Add ci GHA workflow
* Fix `ci-snapshot.yml` to use `spring-artifactory-gradle-build` action directly from the reusable workflows repository **Auto-cherry-pick to `3.2.x`**
1 parent 1205caa commit 13dfd8e

2 files changed

Lines changed: 29 additions & 8 deletions

File tree

.github/workflows/ci-snapshot.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,9 @@ jobs:
3333
with:
3434
show-progress: false
3535

36-
- name: Checkout Common Repo
37-
uses: actions/checkout@v6
38-
with:
39-
repository: spring-io/spring-github-workflows
40-
path: .github/spring-github-workflows
41-
show-progress: false
42-
4336
- name: Build and Publish
4437
timeout-minutes: 30
45-
uses: ./.github/spring-github-workflows/.github/actions/spring-artifactory-gradle-build
38+
uses: spring-io/spring-github-workflows/.github/actions/spring-artifactory-gradle-build@main
4639
with:
4740
gradleTasks: ${{ github.event_name == 'schedule' && '--rerun-tasks' || '' }}
4841
artifactoryUsername: ${{ secrets.ARTIFACTORY_USERNAME }}

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
workflow_dispatch:
5+
6+
push:
7+
branches:
8+
- main
9+
- '*.x'
10+
11+
concurrency:
12+
group: group-ci-for-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
ci:
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
testJavaVersion: [ 17, 21, 25, 26 ]
21+
os: [ ubuntu-latest, macos-latest, windows-latest ]
22+
23+
uses: spring-io/spring-github-workflows/.github/workflows/spring-gradle-ci.yml@main
24+
with:
25+
testJavaVersion: ${{ matrix.testJavaVersion }}
26+
runner: ${{ matrix.os }}
27+
secrets:
28+
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}

0 commit comments

Comments
 (0)