Skip to content

Commit

Permalink
ci: add spring ci
Browse files Browse the repository at this point in the history
- removed fastAPI cicd
- changed react ci branch rules
  • Loading branch information
Arabasta committed Jul 22, 2024
1 parent 937b45f commit a7056af
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
Empty file removed .github/workflows/cd_fastAPI.yaml
Empty file.
Empty file removed .github/workflows/ci_fastAPI.yaml
Empty file.
8 changes: 4 additions & 4 deletions .github/workflows/ci_react.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/ci_spring.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a7056af

Please sign in to comment.