Skip to content

feat: add tests

feat: add tests #1

Workflow file for this run

name: Run Tests
concurrency:
group: docker-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'main'
jobs:
build:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
service:
# - game
# - hrm
- player
# - geo
# - challenge
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
src:
- '.github/workflows/**'
- '${{ matrix.service }}-service/**'
- name: Set up JDK 21 for x64
uses: actions/setup-java@v3
if: steps.changes.outputs.src == 'true'
with:
java-version: '21'
distribution: 'temurin'
architecture: x64
- name: Run Maven Test
if: steps.changes.outputs.src == 'true'
run: |
cd ./${{ matrix.service }}-service
mvn test