Skip to content

Merge pull request #168 from ananjaykumar2/update/rest-assured #13

Merge pull request #168 from ananjaykumar2/update/rest-assured

Merge pull request #168 from ananjaykumar2/update/rest-assured #13

Workflow file for this run

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