diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..17d9595 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,35 @@ +name: Quantix CI + +on: + push: + branches: + - master + + pull_request: + branches: + - master + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + + - name: Cache Maven dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + + - name: Build and test + run: mvn clean verify \ No newline at end of file diff --git a/src/test/java/org/example/quantix/QuantixApplicationTests.java b/src/test/java/org/example/quantix/QuantixApplicationTests.java deleted file mode 100644 index 1bdad44..0000000 --- a/src/test/java/org/example/quantix/QuantixApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package org.example.quantix; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class QuantixApplicationTests { - - @Test - void contextLoads() { - } - -}