Skip to content

Commit 495920d

Browse files
committed
Enable build on GitHub Actions
1 parent ece38ec commit 495920d

File tree

3 files changed

+46
-52
lines changed

3 files changed

+46
-52
lines changed

.github/workflows/build.yml

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

.github/workflows/ci-build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: GitLab4J CI
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- 'dependabot/**'
7+
pull_request:
8+
types: [opened, synchronize, reopened, ready_for_review]
9+
10+
jobs:
11+
12+
build-jdk8:
13+
name: "Build JDK 8"
14+
runs-on: ubuntu-latest
15+
services:
16+
gitlab-instance:
17+
image: gitlab/gitlab-ce:12.9.2-ce.0
18+
env:
19+
GITLAB_OMNIBUS_CONFIG: gitlab_rails['initial_root_password']="password";gitlab_rails['lfs_enabled']=false;
20+
ports:
21+
- 8090:80
22+
steps:
23+
- uses: actions/checkout@v2
24+
with:
25+
fetch-depth: 0
26+
- name: Set up JDK 8
27+
uses: actions/setup-java@v2
28+
with:
29+
distribution: adopt-hotspot
30+
java-version: 8
31+
- name: Get Date
32+
id: get-date
33+
run: |
34+
echo "::set-output name=date::$(/bin/date -u "+%Y-%m")"
35+
shell: bash
36+
- name: Cache Maven Repository
37+
id: cache-maven
38+
uses: actions/cache@v2
39+
with:
40+
path: ~/.m2/repository
41+
# refresh cache every month to avoid unlimited growth
42+
key: gitlab4jmaven-${{ steps.get-date.outputs.date }}
43+
- name: GitLab4j verify
44+
id: gitlab4j-verify
45+
run: |
46+
./mvnw integration-test -B -V -Dmaven.javadoc.skip=true

.travis.yml

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

0 commit comments

Comments
 (0)