Skip to content

Commit

Permalink
Update ci workflow to be reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Dec 13, 2023
1 parent 62c628b commit e64610c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand All @@ -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

0 comments on commit e64610c

Please sign in to comment.