Skip to content

test(backend): fix(066ae3bbb66759fa167086dd88f18d90f48e59c1) #4

test(backend): fix(066ae3bbb66759fa167086dd88f18d90f48e59c1)

test(backend): fix(066ae3bbb66759fa167086dd88f18d90f48e59c1) #4

Workflow file for this run

name: CI for backend
on:
workflow_dispatch:
pull_request:
types: [opened, reopened]
branches: [master, develop]
paths:
- 'backend/**/*.java'
- 'backend/**/*.yml'
- 'backend/**/*.xml'
push:
branches: [master, develop]
paths:
- 'backend/**/*.java'
- 'backend/**/*.yml'
- 'backend/**/*.xml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Code Style Checks
run: |
cd ${{ github.workspace }}/backend
mvn --batch-mode checkstyle:check
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Run Tests
run: |
cd ${{ github.workspace }}/backend
mvn --batch-mode test