From e64610c0697196191ef9407002e13483e5a6c059 Mon Sep 17 00:00:00 2001 From: Mark Patton Date: Wed, 13 Dec 2023 14:25:11 -0500 Subject: [PATCH] Update ci workflow to be reusable --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0279c791..37eed34e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: main Continuous Integration -on: [ pull_request, workflow_dispatch ] +on: [ pull_request, workflow_dispatch, workflow_call ] concurrency: group: ci-${{ github.head_ref || github.ref }} @@ -17,17 +17,20 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout the repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - name: Set up JDK 17 uses: actions/setup-java@v3 with: java-version: 17 distribution: 'temurin' + - name: Cache Maven packages uses: actions/cache@v2 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 + - name: Run Tests - run: mvn -V -ntp verify --file pom.xml + run: mvn -U -B -V -ntp verify