diff --git a/.github/workflows/cd_fastAPI.yaml b/.github/workflows/cd_fastAPI.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/workflows/ci_fastAPI.yaml b/.github/workflows/ci_fastAPI.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/workflows/ci_react.yaml b/.github/workflows/ci_react.yaml index 965cac20..b508fd55 100644 --- a/.github/workflows/ci_react.yaml +++ b/.github/workflows/ci_react.yaml @@ -2,14 +2,14 @@ name: React CI on: push: - branches: - - master + branches-ignore: + - 'release/v[0-9]+.[0-9]+' paths: - 'front/react/**' - '.github/workflows/ci_react.yml' pull_request: - branches: - - master + branches-ignore: + - 'release/v[0-9]+.[0-9]+' paths: - 'front/react/**' - '.github/workflows/ci_react.yml' diff --git a/.github/workflows/ci_spring.yaml b/.github/workflows/ci_spring.yaml index e69de29b..655fe2b6 100644 --- a/.github/workflows/ci_spring.yaml +++ b/.github/workflows/ci_spring.yaml @@ -0,0 +1,35 @@ +name: Java CI with Maven + +on: + push: + branches-ignore: + - 'release/v[0-9]+.[0-9]+' + paths: + - 'back/spring/**' + - '.github/workflows/ci_spring.yml' + pull_request: + branches-ignore: + - 'release/v[0-9]+.[0-9]+' + paths: + - 'back/spring/**' + - '.github/workflows/ci_spring.yml' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + + - name: Build with Maven + working-directory: ./back/spring + run: mvn -B package --file pom.xml \ No newline at end of file