Validate Java solution #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Java solution | |
on: | |
schedule: | |
- cron: '0 0 * * 2' | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validate-java: | |
name: Validate Java solution | |
runs-on: ubuntu-latest | |
container: maven:3-eclipse-temurin-21 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check Java compiler version | |
run: javac --version | |
- name: Check Maven version | |
run: mvn --version | |
- name: Compile Java project | |
run: mvn compile | |
working-directory: ./src/web | |
- name: Package Java project | |
run: mvn package | |
working-directory: ./src/web |