Skip to content

Commit f5df629

Browse files
author
Oryan M
committed
Introduce github actions pull request workflow
1 parent b6cfd64 commit f5df629

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pull-request.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Pull request"
2+
on:
3+
pull_request:
4+
types: [ opened, reopened, synchronize ]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v2
11+
- name: Setup java
12+
uses: actions/setup-java@v2
13+
with:
14+
java-version: '11'
15+
distribution: 'adopt'
16+
- name: Cache Maven packages
17+
uses: actions/cache@v2
18+
with:
19+
path: ~/.m2
20+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
21+
restore-keys: ${{ runner.os }}-m2
22+
- name: Build with Maven
23+
run: mvn --batch-mode --update-snapshots verify
24+

0 commit comments

Comments
 (0)