Skip to content

Commit 07b7f93

Browse files
committed
1 parent c3fc130 commit 07b7f93

File tree

3 files changed

+42
-6
lines changed

3 files changed

+42
-6
lines changed

Diff for: .github/workflows/maven.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# this build is designed to replicate the Travis CI workflow
2+
name: Build with Maven
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
strategy:
14+
matrix:
15+
platform: [ ubuntu-latest ]
16+
java-version: [ 8 ]
17+
18+
runs-on: ${{ matrix.platform }}
19+
env:
20+
PLATFORM: ${{ matrix.platform }}
21+
JAVA_VERSION: ${{ matrix.java-version }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Set up JDK
26+
uses: actions/setup-java@v1
27+
with:
28+
java-version: ${{ matrix.java-version }}
29+
- name: Cache local Maven repository
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: |
35+
${{ runner.os }}-maven-
36+
- name: Install dependencies
37+
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
38+
- name: Build with Maven
39+
run: mvn test --batch-mode --file pom.xml
40+

Diff for: .gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ nb-configuration.xml
6262
.*
6363
!.gitignore
6464
!.gitattributes
65-
!.travis.yml
65+
!.github
6666
*~
6767
#############
6868

@@ -71,4 +71,4 @@ nb-configuration.xml
7171
/webapp/src/main/webapp/WEB-INF/tags/module
7272
/webapp/src/main/webapp/WEB-INF/dwr-modules.xml
7373
/webapp/src/main/webapp/WEB-INF/module_messages*
74-
#############
74+
#############

Diff for: .travis.yml

-4
This file was deleted.

0 commit comments

Comments
 (0)