Skip to content

Commit

Permalink
Consolidating commits to migrate to GHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
kqarryzada committed Oct 10, 2023
1 parent 9dba90c commit 4e9b0d3
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 20 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build Status

on:
push:
# Run tests on any push to feature branches.
branches: [ "master", "main", "DS-[0-9]+*", "ubid-test" ]
pull_request:
branches: [ "master", "main" ]

jobs:
# Run an explicit Checkstyle stage to highlight any linting errors.
checkstyle:
name: mvn checkstyle
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install minimum-supported JDK for Checkstyle
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
cache: maven

- name: Checkstyle
run: |
./mvnw checkstyle:check -Dcheckstyle.config.location=config/scim2-parent-checkstyle.xml
build:
name: mvn package
runs-on: ubuntu-latest
needs: checkstyle

strategy:
matrix:
# Compile and build with supported LTS releases of Java.
java-version: [ 11, 17, "21-ea" ]

steps:
- run: |
echo "This job was triggered by the '${{ github.event_name }}' event."
- run: |
echo "The branch name is '${{ github.ref }}'."
- uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
cache: maven

- name: Build
run: |
./mvnw clean package
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.unboundid.product.scim2/scim2-parent/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.unboundid.product.scim2/scim2-parent)
[![Javadocs](http://javadoc.io/badge/com.unboundid.product.scim2/scim2-parent.svg)](http://javadoc.io/doc/com.unboundid.product.scim2/scim2-parent)
[![Build Status](https://travis-ci.org/pingidentity/scim2.svg?branch=master)](https://travis-ci.org/pingidentity/scim2)
[![Javadocs](http://javadoc.io/badge/com.unboundid.product.scim2/scim2-parent.svg)](http://javadoc.io/doc/com.unboundid.product.scim2/scim2-parent)
[![Build Status](https://github.com/pingidentity/scim2/actions/workflows/build-and-test.yaml/badge.svg)](https://github.com/pingidentity/scim2/actions/workflows/build-and-test.yaml)

# UnboundID SCIM 2 SDK for Java
[SCIM](https://www.simplecloud.info), or _System for Cross-domain Identity Management_, is an IETF
Expand Down
15 changes: 1 addition & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,6 @@
</properties>

<profiles>
<profile>
<id>TravisCI</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<useFile>false</useFile>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>UnboundID</id>
<distributionManagement>
Expand Down Expand Up @@ -252,6 +238,7 @@
<failOnViolation>true</failOnViolation>
<propertyExpansion>cacheFile=${project.build.directory}/checkstyle-cachefile</propertyExpansion>
<logViolationsToConsole>true</logViolationsToConsole>
<headerLocation>config/scim2-parent-gpl.sourceheader</headerLocation>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 4e9b0d3

Please sign in to comment.