Skip to content

Commit

Permalink
feat: add more GitHub workflows
Browse files Browse the repository at this point in the history
update version information

feat: update java version

feat: remove caching in GitHub workflow

Upgrade maven from 3.6.1 to 3.6.3

Signed-off-by: sendilkumarn <sendilkumarn@live.com>
  • Loading branch information
sendilkumarn committed Apr 12, 2020
1 parent bf64411 commit a3dd552
Show file tree
Hide file tree
Showing 6 changed files with 163 additions and 16 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/acceptance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Eclipse Collections - Acceptance Tests

on: [push, pull_request]

jobs:
applications:
name: Acceptance Tests ${{ matrix.java-version }}
strategy:
matrix:
os: [ubuntu-latest]
java-version: [8]

runs-on: ${{ matrix.os }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set Maven Wrapper
run: mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.3
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Acceptance Tests
run: ./mvnw install --projects acceptance-tests --also-make --activate-profiles all --no-transfer-progress
env:
MAVEN_OPTS: "-Xmx1g"

31 changes: 31 additions & 0 deletions .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Eclipse Collections - Checkstyle

on: [push, pull_request]

jobs:
applications:
name: Checkstyle ${{ matrix.java-version }}
strategy:
matrix:
os: [ubuntu-latest]
java-version: [8]

runs-on: ${{ matrix.os }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set Maven Wrapper
run: mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.1
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Checkstyle
run: ./mvnw install checkstyle:check --activate-profiles all -DskipTests=true --no-transfer-progress
env:
MAVEN_OPTS: "-Xmx1g"

31 changes: 31 additions & 0 deletions .github/workflows/findbugs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Eclipse Collections - Findbugs

on: [push, pull_request]

jobs:
applications:
name: Findbugs ${{ matrix.java-version }}
strategy:
matrix:
os: [ubuntu-latest]
java-version: [8]

runs-on: ${{ matrix.os }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set Maven Wrapper
run: mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.1
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Findbugs
run: ./mvnw install findbugs:check --projects '!scala-unit-tests,!jmh-scala-tests,!jmh-tests,!jcstress-tests,!p2-repository' --activate-profiles all -DskipTests=true --no-transfer-progress
env:
MAVEN_OPTS: "-Xmx1g"

31 changes: 31 additions & 0 deletions .github/workflows/javadoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Eclipse Collections - JavaDoc

on: [push, pull_request]

jobs:
applications:
name: Javadoc ${{ matrix.java-version }}
strategy:
matrix:
os: [ubuntu-latest]
java-version: [11]

runs-on: ${{ matrix.os }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set Maven Wrapper
run: mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.1
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: JavaDoc
run: ./mvnw install javadoc:jar --projects 'eclipse-collections-code-generator,eclipse-collections-code-generator-maven-plugin,eclipse-collections-api,eclipse-collections,eclipse-collections-testutils,eclipse-collections-forkjoin' --activate-profiles all -DskipTests=true --no-transfer-progress
env:
MAVEN_OPTS: "-Xmx1g"

31 changes: 31 additions & 0 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Eclipse Collections - Performance Tests

on: [push, pull_request]

jobs:
applications:
name: Performance Tests ${{ matrix.java-version }}
strategy:
matrix:
os: [ubuntu-latest]
java-version: [8]

runs-on: ${{ matrix.os }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set Maven Wrapper
run: mvn -N io.takari:maven:0.7.7:wrapper -Dmaven=3.6.1
- name: Set JDK ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Performance Tests
run: ./mvnw install --projects performance-tests --also-make --activate-profiles all -DskipTests=true --no-transfer-progress
env:
MAVEN_OPTS: "-Xmx1g"

24 changes: 8 additions & 16 deletions .github/workflows/maven.yml → .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Eclipse Collections CI Build
name: Eclipse Collections - Unit tests

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

jobs:
project-build:
applications:
name: Unit Test ${{ matrix.java-version }}
strategy:
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
java-version: [8, 11, 14, 15-ea]

runs-on: ${{ matrix.os }}

env:
JAVA_VERSION: ${{ matrix.java-version }}

steps:
- name: Git Checkout
uses: actions/checkout@v2
Expand All @@ -28,14 +27,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java-version }}
- name: Enable Maven Cache
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Maven
- name: Unit-Test
run: ./mvnw verify
env:
MAVEN_OPTS: "-Xmx1g"
Expand Down

0 comments on commit a3dd552

Please sign in to comment.