Skip to content

Commit

Permalink
Rename job to "tests". Space out steps for easier readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tdonohue committed Nov 25, 2020
1 parent c7d8a9b commit 463c473
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
branches: main

jobs:
build:
tests:
runs-on: ubuntu-latest
env:
# Give Maven 1GB of memory to work with
Expand Down Expand Up @@ -41,11 +41,13 @@ jobs:
# https://github.com/actions/checkout
- name: Checkout codebase
uses: actions/checkout@v1

# https://github.com/actions/setup-java
- name: Install JDK 11
uses: actions/setup-java@v1
with:
java-version: 11

# https://github.com/actions/cache
- name: Cache Maven dependencies
uses: actions/cache@v2
Expand All @@ -55,11 +57,13 @@ jobs:
# Cache key is hash of all pom.xml files. Therefore any changes to POMs will invalidate cache
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-

# Run parallel Maven builds based on the above 'strategy.matrix'
- name: Run Maven ${{ matrix.type }}
env:
TEST_FLAGS: ${{ matrix.mvnflags }}
run: mvn install -B -V -P-assembly -Pcoverage-report $TEST_FLAGS

# https://github.com/codecov/codecov-action
- name: Upload coverage to Codecov.io
uses: codecov/codecov-action@v1

0 comments on commit 463c473

Please sign in to comment.