Build and push the backend on pr and merge
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 4m44s
Build and test backend / Test-backend (pull_request) Successful in 2m51s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s
Build and test FrontEnd / Test-frontend (pull_request) Successful in 23s

This commit is contained in:
Debucquoy Anthony 2024-02-26 14:21:54 +01:00
parent 42d9231ef6
commit 70e9586b8c
Signed by: tonitch
GPG Key ID: A78D6421F083D42E
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,31 @@
name: Build and test backend
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Build-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v3
- name: building
run: ./gradlew backend:build
Test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- uses: gradle/gradle-build-action@v3
- name: building
run: ./gradlew backend:test

View File

@ -7,7 +7,7 @@ on:
branches: [ master ]
jobs:
Build:
Build-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -20,7 +20,7 @@ jobs:
- run: npm run build --if-present
name: build
working-directory: ./frontend
Test:
Test-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4