ci: add dev workflow to build and test application #1
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: Owlplug Dev | |
on: | |
push: | |
branches: | |
- '**' | |
- '!master' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Build maven parent project | |
run: mvn -B install -DskipTests | |
- name: Build OwlPlug client | |
run: cd owlplug-client && mvn -B install spring-boot:repackage -DskipTests | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Build maven parent project | |
run: mvn -B install -DskipTests | |
- name: Run Test | |
run: mvn test |