Skip to content

Commit 46f653b

Browse files
committed
Initial commit
0 parents  commit 46f653b

139 files changed

Lines changed: 9975 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# Workflow name displayed in the GitHub Actions tab
2+
name: Build and Tests CI
3+
4+
# Controls when the workflow will run
5+
on:
6+
# Trigger the workflow on push events to ANY branch
7+
push:
8+
9+
# No 'branches' filter here means it will run on pushes to any branch
10+
# Trigger the workflow on pull request events targeting the 'master' branch
11+
pull_request:
12+
branches:
13+
- master
14+
15+
# Define a single job named 'build-and-test'
16+
jobs:
17+
build-and-test:
18+
# Specify the runner environment for this job.
19+
# 'ubuntu-latest' provides a fresh Ubuntu VM for each run.
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
# Step 1: Checkout the repository code
25+
# This action checks out your repository under $GITHUB_WORKSPACE,
26+
# so your workflow can access it.
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
with:
30+
lfs: true
31+
32+
# Step 2: Set up Java Development Kit (JDK) - Now using OpenJDK 23 (e.g., Temurin)
33+
- name: Set up Amazon Corretto JDK 21
34+
uses: actions/setup-java@v4
35+
with:
36+
java-version: '21'
37+
distribution: 'corretto'
38+
cache: 'gradle'
39+
40+
# Step 3: Grant execute permission to the Gradle wrapper
41+
# The Gradle wrapper script (gradlew) needs execute permissions to run.
42+
- name: Grant execute permission for gradlew
43+
run: chmod +x gradlew
44+
45+
# Step 4: Run Gradle build and tests
46+
# This command executes the 'build' task using the Gradle wrapper.
47+
# The 'build' task typically compiles code, runs unit tests, and packages the application.
48+
- name: Build with Gradle and run tests
49+
env:
50+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
51+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
52+
GPR_USER: "advlad"
53+
GPR_API_KEY: ${{ secrets.GPR_API_KEY }}
54+
run: |
55+
./gradlew build -x testIntegration
56+
# Optional Step 5: Upload test reports as artifacts
57+
# This step uploads the generated test reports (e.g., JUnit XML files)
58+
# as a workflow artifact. This is useful for debugging failures
59+
# and reviewing test results directly from the GitHub Actions UI.
60+
# Adjust the 'path' if your test reports are in a different location.
61+
# Common paths for Gradle JUnit reports are build/reports/tests/test/
62+
# or build/test-results/test/
63+
- name: Upload test reports
64+
if: always() # This ensures the step runs even if previous steps fail
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: test-results
68+
path: build/reports/tests/test/
69+
# You might also want to include build/test-results/test/ if your project structure differs
70+
# path: build/test-results/test/
71+
retention-days: 30 # NEW: Set artifact retention to 30 days
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Gradle Package
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
workflow_dispatch:
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Bump version and push tag
14+
uses: anothrNick/github-tag-action@1.67.0
15+
id: tagging
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
WITH_V: false
19+
PRERELEASE: false
20+
DEFAULT_BUMP: patch
21+
- name: Set up JDK 11
22+
uses: actions/setup-java@v3
23+
with:
24+
java-version: '11'
25+
distribution: 'adopt'
26+
27+
- name: Build with Gradle
28+
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # v2.7.0
29+
with:
30+
gradle-version: 7.4
31+
arguments: build
32+
33+
- name: Publish to GitHub Packages
34+
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # v2.7.0
35+
with:
36+
gradle-version: 7.4
37+
arguments: publish
38+
env:
39+
VERSION: "${{ steps.tagging.outputs.new_tag }}"
40+
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.gradle
2+
/build/
3+
!gradle/wrapper/gradle-wrapper.jar
4+
5+
### STS ###
6+
.apt_generated
7+
.classpath
8+
.factorypath
9+
.project
10+
.settings
11+
.springBeans
12+
13+
### IntelliJ IDEA ###
14+
.idea
15+
*.iws
16+
*.iml
17+
*.ipr
18+
19+
### NetBeans ###
20+
nbproject/private/
21+
build/
22+
nbbuild/
23+
dist/
24+
nbdist/
25+
.nb-gradle/
26+
target/classes/
27+
target/

README.md

Lines changed: 25 additions & 0 deletions
4.93 KB
Binary file not shown.
6.02 KB
Binary file not shown.
4.41 KB
Binary file not shown.
9.06 KB
Binary file not shown.
6.03 KB
Binary file not shown.
4.97 KB
Binary file not shown.

0 commit comments

Comments
 (0)