Skip to content

Commit c1313ca

Browse files
committed
Updated Yaml file
1 parent be1d968 commit c1313ca

2 files changed

Lines changed: 31 additions & 29 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Cleanup Old Workflow Runs
2+
3+
permissions:
4+
actions: write
5+
contents: read
6+
7+
on:
8+
schedule:
9+
- cron: '0 0 * * 0' # Run weekly on Sunday
10+
workflow_dispatch: # Allow manual trigger
11+
12+
jobs:
13+
cleanup:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Delete old workflow runs (including this workflow)
17+
uses: Mattraks/delete-workflow-runs@v2
18+
with:
19+
token: ${{ github.token }}
20+
repository: ${{ github.repository }}
21+
retain_days: 30
22+
keep_minimum_runs: 3 # Keep at least 3 recent runs of each workflow
23+
24+
# Made with Bob

.github/workflows/java.yaml

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ jobs:
1818
runs-on: ubuntu-latest
1919
strategy:
2020
matrix:
21-
jdk: [17, 21]
21+
jdk: [17, 21, 25]
2222
steps:
23-
# Using version tag for GitHub official actions (trusted) for easier maintenance.
24-
# For production code, consider pinning to commit SHA for enhanced security.
25-
# See: https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
2623
- uses: actions/checkout@v4
2724
- name: Set up JDK ${{ matrix.jdk }}
2825
uses: actions/setup-java@v4
@@ -31,54 +28,40 @@ jobs:
3128
distribution: "semeru"
3229
cache: maven
3330
- name: Build with Maven
34-
run: mvn --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} verify
35-
- run: mkdir staging && cp cics-java-liberty-springboot-transactions-app/target/*.war staging
36-
- uses: actions/upload-artifact@v4
37-
with:
38-
name: cics-java-liberty-springboot-transactions (Maven, Java ${{ matrix.jdk }})
39-
path: staging
31+
run: mvn --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} package
4032

4133
build-mvnw:
4234
name: Build Maven Wrapper
4335

4436
runs-on: ubuntu-latest
4537
strategy:
4638
matrix:
47-
jdk: [17, 21]
39+
jdk: [17, 21, 25]
4840
steps:
49-
# Using version tag for GitHub official actions (trusted) for easier maintenance.
50-
# For production code, consider pinning to commit SHA for enhanced security.
51-
# See: https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
5241
- uses: actions/checkout@v4
5342
- name: Set up JDK ${{ matrix.jdk }}
5443
uses: actions/setup-java@v4
5544
with:
5645
java-version: ${{ matrix.jdk }}
5746
distribution: "semeru"
5847
cache: maven
59-
- name: Build with Maven Wrapper
60-
run: ./mvnw --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} verify
48+
- name: Build with Maven
49+
run: ./mvnw --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} package
6150

6251
build-gradle:
6352
name: Build Gradle
6453

6554
runs-on: ubuntu-latest
6655
strategy:
6756
matrix:
68-
jdk: [17, 21]
57+
jdk: [17, 21, 25]
6958
steps:
70-
# Using version tag for GitHub official actions (trusted) for easier maintenance.
71-
# For production code, consider pinning to commit SHA for enhanced security.
72-
# See: https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
7359
- uses: actions/checkout@v4
7460
- name: Set up JDK ${{ matrix.jdk }}
7561
uses: actions/setup-java@v4
7662
with:
7763
java-version: ${{ matrix.jdk }}
7864
distribution: 'semeru'
79-
# Using version tag for Gradle (trusted action) for easier maintenance.
80-
# For production code, consider pinning to commit SHA for enhanced security.
81-
# See: https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
8265
- name: Setup Gradle
8366
uses: gradle/actions/setup-gradle@v4
8467
- name: Build with Gradle
@@ -90,19 +73,14 @@ jobs:
9073
runs-on: ubuntu-latest
9174
strategy:
9275
matrix:
93-
jdk: [17, 21]
76+
jdk: [17, 21, 25]
9477
steps:
95-
# Using version tag for GitHub official actions (trusted) for easier maintenance.
96-
# For production code, consider pinning to commit SHA for enhanced security.
97-
# See: https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions
9878
- uses: actions/checkout@v4
9979
- name: Set up JDK ${{ matrix.jdk }}
10080
uses: actions/setup-java@v4
10181
with:
10282
java-version: ${{ matrix.jdk }}
10383
distribution: 'semeru'
104-
# Using version tag for Gradle official action (trusted) for easier maintenance.
105-
# This demonstrates the recommended approach for CICS sample repositories.
10684
- name: Setup Gradle
10785
uses: gradle/actions/setup-gradle@v4
10886
- name: Build with Gradle

0 commit comments

Comments
 (0)