Java CI with Maven and Docker in Windows #161
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
# This workflow will build a Java project with Maven and Docker | |
name: Java CI with Maven and Docker in Windows | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
- cron: "0 7 * * 0" | |
jobs: | |
build: | |
runs-on: windows-latest | |
name: Build in Windows | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Maven packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/*.yml') }} | |
restore-keys: ${{ runner.os }}-m2- | |
- name: Build with Maven | |
run: mvn verify -Pdocker | |
working-directory: com.examples.hellodocker |