Skip to content

Add or update the Azure App Service build and deployment workflow config #1

Add or update the Azure App Service build and deployment workflow config

Add or update the Azure App Service build and deployment workflow config #1

Workflow file for this run

name: CI - Maven Tests
on:
push:
branches:
- develop
pull_request:
branches:
- develop
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '21'
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build & run tests
run: mvn -B -DskipTests=false clean test
- name: Upload test results (JUnit)
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: target/surefire-reports