Refactor ci

This commit is contained in:
2025-09-07 20:26:28 +03:00
parent e8b9261775
commit 035137148c
3 changed files with 106 additions and 59 deletions

33
.github/workflows/ci.yaml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: CI Verification
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Cancel redundant, in-progress runs for the same branch or PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
verify:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Verify with Gradle
# The 'build' command will compile, run tests, and package the app.
# If any step fails, the workflow will fail, protecting your main branch.
run: ./gradlew build