Merge pull request #17 from aklivity/dependabot/npm_and_yarn/app/webp… #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: service | |
on: | |
push: | |
branches: [ main, 'feature/**' ] | |
pull_request: | |
branches: [ main, 'feature/**' ] | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build Service | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java: [ 17 ] | |
defaults: | |
run: | |
working-directory: service | |
steps: | |
- name: Checkout GitHub sources | |
uses: actions/checkout@v2 | |
- name: Setup JDK ${{ matrix.java }} | |
uses: actions/setup-java@v1 | |
with: | |
java-version: ${{ matrix.java }} | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.m2/repository | |
!~/.m2/repository/io/aklivity/zilla | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Build with Maven | |
run: ./mvnw -B -U -nsu -Ddocker.logStdout -Ddocker.verbose install |