diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..6b649ae --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: Java CI + +on: + workflow_dispatch: + push: + branches: + - 'Master' + +jobs: + ci-pipeline: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '21' + + - name: Grant execute permission for Gradle Wrapper + run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build + + - name: Test with Gradle + run: ./gradlew test