Skip to content

Merge pull request #4 from mkutay/web-app #98

Merge pull request #4 from mkutay/web-app

Merge pull request #4 from mkutay/web-app #98

Workflow file for this run

name: Java CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Compile Java code and tests
run: |
mkdir -p bin
find java-backend/src -name "*.java" > sources.txt
javac -cp "java-backend/lib/*" -d bin @sources.txt
- name: Run JUnit tests
run: java -cp "bin:java-backend/lib/*" org.junit.platform.console.ConsoleLauncher --scan-class-path