Feat: added build pipeline, version upgrade #1
Workflow file for this run
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: build | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
name: Running Java ${{ matrix.java }} compile | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Compile code | |
run: mvn clean compile | |
build: | |
runs-on: ubuntu-latest | |
name: build | |
needs: compile | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Build with Maven | |
run: mvn clean -B package --file pom.xml -Dmaven.test.skip=true | |
test: | |
runs-on: ubuntu-latest | |
name: run tests | |
needs: compile | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Run unit tests | |
run: mvn clean test | |
coverage: | |
runs-on: ubuntu-latest | |
name: coverage | |
needs: compile | |
steps: | |
- name: coverage with maven | |
uses: actions/checkout@v2 | |
with: | |
java-version: 11 | |
- name: build and coverage | |
run: mvn clean -B verify --no-transfer-progress |