From 463c473c2b218dbb067896574c43f963bc41cbd5 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Wed, 25 Nov 2020 09:16:11 -0600 Subject: [PATCH] Rename job to "tests". Space out steps for easier readability --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6856df251d7..76148f343550 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,7 @@ on: branches: main jobs: - build: + tests: runs-on: ubuntu-latest env: # Give Maven 1GB of memory to work with @@ -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 @@ -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