From f629fb5941f66616e737b4296b987c6c196ba752 Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 18:11:42 +0200 Subject: [PATCH 1/7] Add build and test CI --- .github/workflows/build-and-test.yaml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-and-test.yaml diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml new file mode 100644 index 0000000..b6a2805 --- /dev/null +++ b/.github/workflows/build-and-test.yaml @@ -0,0 +1,28 @@ +name: build-and-test +on: + pull_request: + branches: + - staging + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up JDK 1.8 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: 8 + + - name: Set up Gradle + uses: gradle/gradle-build-action@v2 + + - name: Build Application + run: ./gradlew build --no-daemon + + - name: Run Tests + run: ./gradlew test --no-daemon From 13308d8b07e0c9234da232cee8fc6889a8e3efe3 Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 18:35:11 +0200 Subject: [PATCH 2/7] Add build and test CI --- .github/workflows/build-and-test.yaml | 14 +++++++------- gradlew | 0 2 files changed, 7 insertions(+), 7 deletions(-) mode change 100644 => 100755 gradlew diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index b6a2805..80d3193 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -9,20 +9,20 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout Repository + - name: Checkout uses: actions/checkout@v4 - name: Set up JDK 1.8 uses: actions/setup-java@v2 with: - distribution: 'temurin' java-version: 8 + distribution: 'temurin' - name: Set up Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 - - name: Build Application - run: ./gradlew build --no-daemon + - name: Build with Gradle + run: ./gradlew build - - name: Run Tests - run: ./gradlew test --no-daemon + - name: Test with Gradle + run: ./gradlew test diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 From 042a7dab5dcfeace0e6ba50316ab6806eb0c57ca Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 19:05:44 +0200 Subject: [PATCH 3/7] Add master branch --- .github/workflows/build-and-test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 80d3193..00f30c1 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -2,6 +2,7 @@ name: build-and-test on: pull_request: branches: + - master - staging jobs: From 89fae3fdeec618af7f1e9c62338837d781faeccd Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 19:05:57 +0200 Subject: [PATCH 4/7] Add auto assign action --- .github/auto_assign.yml | 25 +++++++++++++++++++++++++ .github/workflows/auto-assign.yml | 10 ++++++++++ 2 files changed, 35 insertions(+) create mode 100644 .github/auto_assign.yml create mode 100644 .github/workflows/auto-assign.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 0000000..c8dd0c8 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,25 @@ +# Set to true to add reviewers to pull requests +addReviewers: true + +# Set to true to add assignees to pull requests +addAssignees: author + +# A list of reviewers to be added to pull requests (GitHub user name) +reviewers: + - AleksandarHaralanov + +# A number of reviewers added to the pull request +# Set 0 to add all the reviewers (default: 0) +numberOfReviewers: 0 +# A list of assignees, overrides reviewers if set +# assignees: +# - assigneeA + +# A number of assignees to add to the pull request +# Set to 0 to add all of the assignees. +# Uses numberOfReviewers if unset. +# numberOfAssignees: 2 + +# A list of keywords to be skipped the process that add reviewers if pull requests include it +# skipKeywords: +# - wip \ No newline at end of file diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 0000000..6e75849 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,10 @@ +name: auto-assign +on: + pull_request: + types: [opened, ready_for_review] + +jobs: + add-reviews: + runs-on: ubuntu-latest + steps: + - uses: kentaro-m/auto-assign-action@v2.0.0 From 51e7a5930d76430ccc6452be7484b9c10a94334b Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 19:42:48 +0200 Subject: [PATCH 5/7] Remove Auto Assign Action --- .github/auto_assign.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/auto_assign.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml deleted file mode 100644 index c8dd0c8..0000000 --- a/.github/auto_assign.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Set to true to add reviewers to pull requests -addReviewers: true - -# Set to true to add assignees to pull requests -addAssignees: author - -# A list of reviewers to be added to pull requests (GitHub user name) -reviewers: - - AleksandarHaralanov - -# A number of reviewers added to the pull request -# Set 0 to add all the reviewers (default: 0) -numberOfReviewers: 0 -# A list of assignees, overrides reviewers if set -# assignees: -# - assigneeA - -# A number of assignees to add to the pull request -# Set to 0 to add all of the assignees. -# Uses numberOfReviewers if unset. -# numberOfAssignees: 2 - -# A list of keywords to be skipped the process that add reviewers if pull requests include it -# skipKeywords: -# - wip \ No newline at end of file From 0107624676b8b8bf3e9912cd533022815fef112b Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 19:42:53 +0200 Subject: [PATCH 6/7] Remove Auto Assign Action --- .github/workflows/auto-assign.yml | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 .github/workflows/auto-assign.yml diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml deleted file mode 100644 index 6e75849..0000000 --- a/.github/workflows/auto-assign.yml +++ /dev/null @@ -1,10 +0,0 @@ -name: auto-assign -on: - pull_request: - types: [opened, ready_for_review] - -jobs: - add-reviews: - runs-on: ubuntu-latest - steps: - - uses: kentaro-m/auto-assign-action@v2.0.0 From d10f5b960c4375347ad158bcdbbf404fb5c112c3 Mon Sep 17 00:00:00 2001 From: AleksandarHaralanov Date: Wed, 19 Feb 2025 19:44:21 +0200 Subject: [PATCH 7/7] Add CODEOWNERS --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/CODEOWNERS diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..a838125 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Global owners +* @AleksandarHaralanov \ No newline at end of file