Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 68f1fee

Browse files
Merge pull request SORMAS-Foundation#3732 from ImisDevelopers/feature-3730-gh-actions-ci
[SORMAS-Foundation#3730] github actions ci
2 parents 2db702d + 671e83a commit 68f1fee

2 files changed

Lines changed: 39 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Java CI with Maven
5+
6+
env:
7+
java: 11
8+
9+
on:
10+
push:
11+
branches: [ development, master ]
12+
pull_request:
13+
branches: [ development ]
14+
15+
jobs:
16+
build:
17+
name: Build
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v2
23+
24+
- name: Set up JDK ${{ env.java }}
25+
uses: actions/setup-java@v1
26+
with:
27+
java-version: ${{ env.java }}
28+
29+
- name: Cache Maven packages
30+
# FIXME(@JonasCir) #3733 remove '**/*.pom' once serverlib pom is renamed
31+
uses: actions/cache@v2
32+
with:
33+
path: ~/.m2
34+
key: ${{ runner.os }}-java-${{ env.java }}-m2-${{ hashFiles('**/pom.xml', '**/*.pom') }}
35+
restore-keys: ${{ runner.os }}-java-${{ env.java }}-m2
36+
37+
- name: Build with Maven
38+
working-directory: ./sormas-base
39+
run: mvn verify -B -ntp

.travis.yml

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

0 commit comments

Comments
 (0)