Fix maven issue in github action #7
This file contains hidden or 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: Build and run tests workflow | |
on: | |
push: | |
branches: | |
- github-action | |
pull_request: | |
branches: | |
- github-action | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- run: mvn --version | |
- run: which maven | |
- run: which java | |
- name: clean, build and run unit tests | |
run: mvn clean test |