Skip to content

Commit badb196

Browse files
committed
Added maven-test.yml
1 parent dc4e45f commit badb196

2 files changed

Lines changed: 36 additions & 34 deletions

File tree

.github/workflows/maven-publish.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/maven-test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Maven Test
2+
3+
# Controls when the workflow will run
4+
on:
5+
# Triggers the workflow on push or pull request events but only for the develop branch
6+
push:
7+
branches: [ develop ]
8+
pull_request:
9+
branches: [ develop ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Set up JDK 8
22+
uses: actions/setup-java@v2
23+
with:
24+
java-version: '8'
25+
distribution: 'adopt'
26+
27+
- name: Cache local Maven repository
28+
uses: actions/cache@v2
29+
with:
30+
path: ~/.m2/repository
31+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: |
33+
${{ runner.os }}-maven-
34+
35+
- name: Maven test
36+
run: mvn test

0 commit comments

Comments
 (0)