Skip to content

Commit

Permalink
Add github action (#238)
Browse files Browse the repository at this point in the history
* Add github action

* Update badge

* Add JDK 11 test before JDK 8 test
  • Loading branch information
coudot authored Oct 19, 2023
1 parent 19c5807 commit 2e62f46
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B -Popendj package --file pom.xml
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B -Popendj package --file pom.xml
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LDAP Synchronization Connector

[![Build Status](https://travis-ci.org/lsc-project/lsc.svg?branch=master)](https://travis-ci.org/lsc-project/lsc)
[![Build Status](https://github.com/lsc-project/lsc/actions/workflows/maven.yml/badge.svg)](https://github.com/lsc-project/lsc/actions/workflows/maven.yml)

Full HTML documentation is available at https://lsc-project.org/

Expand Down

0 comments on commit 2e62f46

Please sign in to comment.