2024-02-26 14:21:54 +01:00
|
|
|
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
|
2024-03-17 22:40:22 +01:00
|
|
|
run: ./gradlew backend:build -x test
|
2024-02-26 14:21:54 +01:00
|
|
|
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
|