Created
April 20, 2020 16:49
-
-
Save kabachook/c9189d9782f7d6015ad4b945b2e04893 to your computer and use it in GitHub Desktop.
GiHub Actions Java
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: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '13' # The JDK version to make available on the path. | |
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk | |
architecture: x64 # (x64 or x86) - defaults to x64 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: | |
run: java -Xmx32m -version | |
- name: Install dependencies | |
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V | |
- name: Build and test | |
run: mvn test -B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment