From 09d9421153052f27985c5d63bf53bed5ad7d4e45 Mon Sep 17 00:00:00 2001 From: aimov6464 <89815476+aimov6464@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:12:04 +0400 Subject: [PATCH] Add CI workflow for Java project using Maven --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1225515 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Amazon Corretto 25 + uses: actions/setup-java@v4 + with: + distribution: 'corretto' + java-version: '25' + cache: 'maven' + + - name: Build & run unit tests + run: mvn -q -B test