Skip to content

Commit 8d778c5

Browse files
DGarbarrpanchyk
authored andcommitted
Add Github Actions (prebid#563)
Add some badges to README.md. I decided to not include build on `push` to master. Bc we always use PRs for all features. Also, you can include 11 to `strategy.matrix.java` to verify version compatibility. Be aware, that Java CI will be triggered by all `pull_request` event types (after each commit) Later I want to add separate workflow to build Docker image on `release` event.
1 parent 59ca93b commit 8d778c5

2 files changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/pullrequest.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Java CI
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'docs/**'
7+
- '.github/**'
8+
branches:
9+
- master
10+
release:
11+
types:
12+
- created
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
strategy:
19+
matrix:
20+
java: [8]
21+
22+
steps:
23+
- uses: actions/checkout@v1
24+
25+
- name: Set up JDK
26+
uses: actions/setup-java@v1
27+
with:
28+
java-version: ${{ matrix.java }}
29+
30+
- name: Cache Maven dependendcies
31+
uses: actions/cache@v1
32+
with:
33+
path: ~/.m2/repository
34+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
35+
restore-keys: |
36+
${{ runner.os }}-maven-
37+
38+
- name: Build with Maven
39+
run: mvn -B package --file pom.xml

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
## This code is being used in production by multiple Prebid.org members, but is not the "official" version. See https://github.com/prebid/prebid-server/
22

33
# Prebid Server
4+
[![GitHub version](https://badge.fury.io/gh/rubicon-project%2fprebid-server-java.svg)](http://badge.fury.io/gh/rubicon-project%2fprebid-server-java)
5+
[![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/rubicon-project/prebid-server-java.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rubicon-project/prebid-server-java/context:java)
6+
[![Total alerts](https://img.shields.io/lgtm/alerts/g/rubicon-project/prebid-server-java.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/rubicon-project/prebid-server-java/alerts/)
7+
[![GitHub contributors](https://img.shields.io/github/contributors/rubicon-project/prebid-server-java.svg)](https://GitHub.com/rubicon-project/prebid-server-java/contributors/)
8+
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/rubicon-project/prebid-server-java/blob/master/docs/contributing.md)
9+
[![GitHub pull-requests closed](https://img.shields.io/github/issues-pr-closed/rubicon-project/prebid-server-java.svg)](https://GitHub.com/rubicon-project/prebid-server-java/pull/)
410

511
Prebid Server is an open source implementation of Server-Side Header Bidding.
612
It is managed by [Prebid.org](http://prebid.org/overview/what-is-prebid-org.html),

0 commit comments

Comments
 (0)